Mercurial > cpython-lru_cache-weakref
diff Lib/json/decoder.py @ 84442:7769c4d72806
Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Thu, 04 Jul 2013 17:43:24 -0400 |
| parents | 8d28d44f3a9a |
| children | 5f7326ed850f |
line wrap: on
line diff
--- a/Lib/json/decoder.py Thu Jul 04 21:06:12 2013 +0200 +++ b/Lib/json/decoder.py Thu Jul 04 17:43:24 2013 -0400 @@ -5,7 +5,7 @@ from json import scanner try: from _json import scanstring as c_scanstring -except ModuleNotFoundError: +except ImportError: c_scanstring = None __all__ = ['JSONDecoder']
