summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-18 18:51:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-18 18:51:47 (GMT)
commit7a6b44ab6275aeeb8959437f10ae9ca17aa0b2e4 (patch)
tree377da01a67abfab15389e51e201df33f5a7dfa0e /Objects
parent5ad517a7d9c2694e726b3244505af274f91fb5d9 (diff)
downloadcpython-7a6b44ab6275aeeb8959437f10ae9ca17aa0b2e4.zip
cpython-7a6b44ab6275aeeb8959437f10ae9ca17aa0b2e4.tar.gz
cpython-7a6b44ab6275aeeb8959437f10ae9ca17aa0b2e4.tar.bz2
the named of the character is actually NUL
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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;
}