mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
merge 3.2
This commit is contained in:
commit
020340f284
1 changed files with 1 additions and 1 deletions
|
@ -1922,7 +1922,7 @@ PyUnicode_FSConverter(PyObject* arg, void* addr)
|
||||||
size = PyBytes_GET_SIZE(output);
|
size = PyBytes_GET_SIZE(output);
|
||||||
data = PyBytes_AS_STRING(output);
|
data = PyBytes_AS_STRING(output);
|
||||||
if (size != strlen(data)) {
|
if (size != strlen(data)) {
|
||||||
PyErr_SetString(PyExc_TypeError, "embedded NUL character");
|
PyErr_SetString(PyExc_TypeError, "embedded NULL character");
|
||||||
Py_DECREF(output);
|
Py_DECREF(output);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue