mirror of https://github.com/python/cpython.git
the named of the character is actually NUL
This commit is contained in:
parent
5ad517a7d9
commit
7a6b44ab62
|
@ -1897,7 +1897,7 @@ PyUnicode_FSConverter(PyObject* arg, void* addr)
|
|||
size = PyBytes_GET_SIZE(output);
|
||||
data = PyBytes_AS_STRING(output);
|
||||
if (size != strlen(data)) {
|
||||
PyErr_SetString(PyExc_TypeError, "embedded NULL character");
|
||||
PyErr_SetString(PyExc_TypeError, "embedded NUL character");
|
||||
Py_DECREF(output);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue