From 893f58554ab963f8abd4a08222a311014322fff1 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 2 Jul 2018 00:22:05 +0200 Subject: Improve a bit the formatting of the code thanks to pyflakes3 --- libmat2/images.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libmat2/images.py') diff --git a/libmat2/images.py b/libmat2/images.py index a7a9cad..74533b5 100644 --- a/libmat2/images.py +++ b/libmat2/images.py @@ -15,9 +15,9 @@ from gi.repository import GdkPixbuf from . import abstract -class __ImageParser(abstract.AbstractParser): +class _ImageParser(abstract.AbstractParser): @staticmethod - def __handle_problematic_filename(filename:str, callback) -> str: + def __handle_problematic_filename(filename: str, callback) -> str: """ This method takes a filename with a problematic name, and safely applies it a `callback`.""" tmpdirname = tempfile.mkdtemp() @@ -42,7 +42,7 @@ class __ImageParser(abstract.AbstractParser): meta.pop(key, None) return meta -class PNGParser(__ImageParser): +class PNGParser(_ImageParser): mimetypes = {'image/png', } meta_whitelist = {'SourceFile', 'ExifToolVersion', 'FileName', 'Directory', 'FileSize', 'FileModifyDate', @@ -65,7 +65,7 @@ class PNGParser(__ImageParser): return True -class GdkPixbufAbstractParser(__ImageParser): +class GdkPixbufAbstractParser(_ImageParser): """ GdkPixbuf can handle a lot of surfaces, so we're rending images on it, this has the side-effect of removing metadata completely. """ -- cgit v1.3