Skip to content

Commit 286e57b

Browse files
committed
Revert "Apply suggestion from Brett"
This reverts commit 3e833e0.
1 parent 70cc690 commit 286e57b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/support/import_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def make_legacy_pyc(source, allow_compile=False):
7171
try:
7272
pyc_file = importlib.util.cache_from_source(source)
7373
shutil.move(pyc_file, legacy_pyc)
74-
except FileNotFoundError, NotImplementedError:
74+
except (FileNotFoundError, NotImplementedError):
7575
if not allow_compile:
7676
raise
7777
py_compile.compile(source, legacy_pyc, doraise=True)

0 commit comments

Comments
 (0)