We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70cc690 commit 286e57bCopy full SHA for 286e57b
1 file changed
Lib/test/support/import_helper.py
@@ -71,7 +71,7 @@ def make_legacy_pyc(source, allow_compile=False):
71
try:
72
pyc_file = importlib.util.cache_from_source(source)
73
shutil.move(pyc_file, legacy_pyc)
74
- except FileNotFoundError, NotImplementedError:
+ except (FileNotFoundError, NotImplementedError):
75
if not allow_compile:
76
raise
77
py_compile.compile(source, legacy_pyc, doraise=True)
0 commit comments