#11982: fix json.loads('""') to return u'' rather than ''.

This commit is contained in:
Ezio Melotti 2011-05-04 14:40:53 +03:00
parent 1602ec109b
commit df8a8f768d
3 changed files with 5 additions and 2 deletions

View file

@ -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;
}