diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-07-31 16:34:38 -0400 |
---|---|---|
committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-08-03 08:43:01 -0400 |
commit | 8db7b72f297c8a604f1ad1002fda0b138497c211 (patch) | |
tree | 44ce3926e492f2cab28a724342d3b428d9cdb59e /pylint/lint/expand_modules.py | |
parent | 145c51e4e1a5712053d926558ebf62ccfd0a1751 (diff) | |
download | pylint-git-8db7b72f297c8a604f1ad1002fda0b138497c211.tar.gz |
Remove imp-specific workaround
Diffstat (limited to 'pylint/lint/expand_modules.py')
-rw-r--r-- | pylint/lint/expand_modules.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pylint/lint/expand_modules.py b/pylint/lint/expand_modules.py index d90305f0d..d5fe60661 100644 --- a/pylint/lint/expand_modules.py +++ b/pylint/lint/expand_modules.py @@ -105,9 +105,7 @@ def expand_modules( ) if filepath is None: continue - except (ImportError, SyntaxError) as ex: - # The SyntaxError is a Python bug and should be - # removed once we move away from imp.find_module: https://bugs.python.org/issue10588 + except ImportError as ex: errors.append({"key": "fatal", "mod": modname, "ex": ex}) continue filepath = os.path.normpath(filepath) |