diff options
| author | jvoisin | 2018-07-02 00:22:05 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-02 00:22:05 +0200 |
| commit | 893f58554ab963f8abd4a08222a311014322fff1 (patch) | |
| tree | fe4ec24bc5089a6701ab985e1ad3f6a1151ea9a4 /libmat2/parser_factory.py | |
| parent | 11008f8fd436f0b8b00bc600a2cd7a77b55c7494 (diff) | |
Improve a bit the formatting of the code thanks to pyflakes3
Diffstat (limited to 'libmat2/parser_factory.py')
| -rw-r--r-- | libmat2/parser_factory.py | 6 |
1 files changed, 3 insertions, 3 deletions
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]]: | |||
| 37 | if extension in unsupported_extensions: | 37 | if extension in unsupported_extensions: |
| 38 | return None, mtype | 38 | return None, mtype |
| 39 | 39 | ||
| 40 | for c in _get_parsers(): # type: ignore | 40 | for parser_class in _get_parsers(): # type: ignore |
| 41 | if mtype in c.mimetypes: | 41 | if mtype in parser_class.mimetypes: |
| 42 | try: | 42 | try: |
| 43 | return c(filename), mtype | 43 | return parser_class(filename), mtype |
| 44 | except ValueError: | 44 | except ValueError: |
| 45 | return None, mtype | 45 | return None, mtype |
| 46 | return None, mtype | 46 | return None, mtype |
