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/parser_factory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmat2/parser_factory.py') diff --git a/libmat2/parser_factory.py b/libmat2/parser_factory.py index 9f4740b..7d4f43f 100644 --- a/libmat2/parser_factory.py +++ b/libmat2/parser_factory.py @@ -37,10 +37,10 @@ def get_parser(filename: str) -> Tuple[Optional[T], Optional[str]]: if extension in unsupported_extensions: return None, mtype - for c in _get_parsers(): # type: ignore - if mtype in c.mimetypes: + for parser_class in _get_parsers(): # type: ignore + if mtype in parser_class.mimetypes: try: - return c(filename), mtype + return parser_class(filename), mtype except ValueError: return None, mtype return None, mtype -- cgit v1.3