#9233: Fix json to work properly even when _json is not available.

This commit is contained in:
Ezio Melotti 2011-04-13 07:04:18 +03:00
parent 4f95a52fe2
commit c753305180
3 changed files with 6 additions and 3 deletions

View file

@ -214,7 +214,7 @@ def JSONObject(s_and_end, strict, scan_once, object_hook, object_pairs_hook,
pairs = object_hook(pairs)
return pairs, end
def JSONArray(s_and_end, scan_once, context, _w=WHITESPACE.match):
def JSONArray(s_and_end, scan_once, _w=WHITESPACE.match, _ws=WHITESPACE_STR):
s, end = s_and_end
values = []
nextchar = s[end:end + 1]