summaryrefslogtreecommitdiff
path: root/pylint/lint
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2022-07-31 16:34:38 -0400
committerJacob Walls <jacobtylerwalls@gmail.com>2022-08-03 08:43:01 -0400
commit8db7b72f297c8a604f1ad1002fda0b138497c211 (patch)
tree44ce3926e492f2cab28a724342d3b428d9cdb59e /pylint/lint
parent145c51e4e1a5712053d926558ebf62ccfd0a1751 (diff)
downloadpylint-git-8db7b72f297c8a604f1ad1002fda0b138497c211.tar.gz
Remove imp-specific workaround
Diffstat (limited to 'pylint/lint')
-rw-r--r--pylint/lint/expand_modules.py4
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)