def write_images(self):
"""Write the SVG images."""
for path in ('file.svg', 'back.svg'):
source = pkgutil.get_data('flake8_html', 'images/' + path)
outpath = os.path.join(self.outdir, path)
with open(outpath, 'wb') as f:
f.write(source)
评论列表
文章目录