summaryrefslogtreecommitdiffstats
path: root/Lib/json
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-05-22 11:55:07 (GMT)
committerGitHub <noreply@github.com>2018-05-22 11:55:07 (GMT)
commitae00fb1d4f38ea1803b10d798564740adcdad63e (patch)
tree9770377ec2e9fe879d44d87d908e8e0629aa1bfb /Lib/json
parent55bfe690d570958a66ee6c7b15fc8daca0f9c2d3 (diff)
downloadcpython-ae00fb1d4f38ea1803b10d798564740adcdad63e.zip
cpython-ae00fb1d4f38ea1803b10d798564740adcdad63e.tar.gz
cpython-ae00fb1d4f38ea1803b10d798564740adcdad63e.tar.bz2
bpo-30877: Fix clearing a cache in the the JSON decoder. (GH-7048)
Diffstat (limited to 'Lib/json')
-rw-r--r--Lib/json/scanner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/json/scanner.py b/Lib/json/scanner.py
index c451eba..7a61cfc 100644
--- a/Lib/json/scanner.py
+++ b/Lib/json/scanner.py
@@ -68,6 +68,6 @@ def py_make_scanner(context):
finally:
memo.clear()
- return _scan_once
+ return scan_once
make_scanner = c_make_scanner or py_make_scanner