From 7a6b44ab6275aeeb8959437f10ae9ca17aa0b2e4 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 18 Aug 2011 13:51:47 -0500 Subject: the named of the character is actually NUL --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v0.12