Mercurial > cpython-lru_cache-weakref
diff Lib/json/decoder.py @ 70084:5b0fecd2eba0 2.7
#5723: Improve json tests to be executed with and without accelerations.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Sat, 14 May 2011 06:24:53 +0300 |
| parents | d58c63ff5bb2 |
| children | 7762816e3fcd |
line wrap: on
line diff
--- a/Lib/json/decoder.py Sat May 14 06:02:25 2011 +0300 +++ b/Lib/json/decoder.py Sat May 14 06:24:53 2011 +0300 @@ -4,7 +4,7 @@ import sys import struct -from json.scanner import make_scanner +from json import scanner try: from _json import scanstring as c_scanstring except ImportError: @@ -356,7 +356,7 @@ self.parse_object = JSONObject self.parse_array = JSONArray self.parse_string = scanstring - self.scan_once = make_scanner(self) + self.scan_once = scanner.make_scanner(self) def decode(self, s, _w=WHITESPACE.match): """Return the Python representation of ``s`` (a ``str`` or ``unicode``
