mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
#11982: fix json.loads('""') to return u'' rather than ''.
This commit is contained in:
parent
1602ec109b
commit
df8a8f768d
3 changed files with 5 additions and 2 deletions
|
@ -595,7 +595,7 @@ scanstring_str(PyObject *pystr, Py_ssize_t end, char *encoding, int strict, Py_s
|
|||
Py_DECREF(chunk);
|
||||
}
|
||||
|
||||
rval = join_list_string(chunks);
|
||||
rval = join_list_unicode(chunks);
|
||||
if (rval == NULL) {
|
||||
goto bail;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue