mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#5723: merge with 3.1.
This commit is contained in:
parent
3659f27ad3
commit
6b60fb9148
19 changed files with 253 additions and 218 deletions
|
@ -5,7 +5,7 @@ import re
|
|||
import sys
|
||||
import struct
|
||||
|
||||
from json.scanner import make_scanner
|
||||
from json import scanner
|
||||
try:
|
||||
from _json import scanstring as c_scanstring
|
||||
except ImportError:
|
||||
|
@ -340,7 +340,7 @@ class JSONDecoder(object):
|
|||
self.parse_array = JSONArray
|
||||
self.parse_string = scanstring
|
||||
self.memo = {}
|
||||
self.scan_once = make_scanner(self)
|
||||
self.scan_once = scanner.make_scanner(self)
|
||||
|
||||
|
||||
def decode(self, s, _w=WHITESPACE.match):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue