diff options
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 |
