diff options
author | Brett Cannon <brett@python.org> | 2013-07-04 17:43:24 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-07-04 17:43:24 -0400 |
commit | b622408dbf6059cc2190fd513f22d7cf046aece4 (patch) | |
tree | 0e29fe3d43a70bee9b2eb9954e4ddd856b2a0004 /Lib/json/scanner.py | |
parent | a2eb4403f54119a0eb7c85790e30bf9b394aa794 (diff) | |
download | cpython-b622408dbf6059cc2190fd513f22d7cf046aece4.tar.gz |
Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)
Diffstat (limited to 'Lib/json/scanner.py')
-rw-r--r-- | Lib/json/scanner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/json/scanner.py b/Lib/json/scanner.py index 761ade3483..86426cde1a 100644 --- a/Lib/json/scanner.py +++ b/Lib/json/scanner.py @@ -3,7 +3,7 @@ import re try: from _json import make_scanner as c_make_scanner -except ModuleNotFoundError: +except ImportError: c_make_scanner = None __all__ = ['make_scanner'] |