]> granicus.if.org Git - python/commitdiff
the named of the character is actually NUL
authorBenjamin Peterson <benjamin@python.org>
Thu, 18 Aug 2011 18:51:47 +0000 (13:51 -0500)
committerBenjamin Peterson <benjamin@python.org>
Thu, 18 Aug 2011 18:51:47 +0000 (13:51 -0500)
Objects/unicodeobject.c

index 1f2d91913ede20ac9048252f36d8e67e8dbe5331..77f8dd5a810ea049b19871fbbe372adf6d7044aa 100644 (file)
@@ -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;
     }