commit | 7a6b44ab6275aeeb8959437f10ae9ca17aa0b2e4 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Aug 18 13:51:47 2011 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Aug 18 13:51:47 2011 -0500 |
tree | 377da01a67abfab15389e51e201df33f5a7dfa0e | |
parent | 5ad517a7d9c2694e726b3244505af274f91fb5d9 [diff] |
the named of the character is actually NUL
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1f2d919..77f8dd5 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -1897,7 +1897,7 @@ 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; }