Make pylint happy

This commit is contained in:
Bastian Germann 2019-05-01 11:00:53 +02:00
parent 38c3fcbb11
commit a3ef19dbd9

View File

@ -292,7 +292,7 @@ class PdfDocument(PresentationDocument):
# keep aspect ratio
scale = min(size.width() / src_size.width, size.height() / src_size.height)
m = fitz.Matrix(scale, scale)
page.getPixmap(matrix=m, alpha=False).writeImage(str(temp_dir_path / 'mainslide{:03d}.png'.format(i)))
page.getPixmap(m, alpha=False).writeImage(str(temp_dir_path / 'mainslide{:03d}.png'.format(i)))
pdf.close()
created_files = sorted(temp_dir_path.glob('*'))
for image_path in created_files: