summaryrefslogtreecommitdiff
path: root/Lib/lib2to3
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-13 20:57:26 -0400
committerBrett Cannon <brett@python.org>2013-06-13 20:57:26 -0400
commitdfd87ef593fcae1f252092348479d456375552fc (patch)
tree9b2837665fa5a4027ac58d40eb6675d4249a4a4d /Lib/lib2to3
parent87407f5d891b20af9b7ef9ae0cb728210784581f (diff)
downloadcpython-dfd87ef593fcae1f252092348479d456375552fc.tar.gz
Issue #18200: Update the stdlib (except tests) to use
ModuleNotFoundError.
Diffstat (limited to 'Lib/lib2to3')
-rw-r--r--Lib/lib2to3/refactor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py
index 8100317871..11a353cb99 100644
--- a/Lib/lib2to3/refactor.py
+++ b/Lib/lib2to3/refactor.py
@@ -706,7 +706,7 @@ class MultiprocessRefactoringTool(RefactoringTool):
items, write, doctests_only)
try:
import multiprocessing
- except ImportError:
+ except ModuleNotFoundError:
raise MultiprocessingUnsupported
if self.queue is not None:
raise RuntimeError("already doing multiple processes")