[Python-checkins] cpython (3.2): the named of the character is actually NUL

benjamin.peterson python-checkins at python.org
Thu Aug 18 20:55:47 CEST 2011


http://hg.python.org/cpython/rev/deb87aaf8ee9
changeset:   71905:deb87aaf8ee9
branch:      3.2
parent:      71900:459e2a9b7f54
user:        Benjamin Peterson <benjamin at python.org>
date:        Thu Aug 18 13:51:47 2011 -0500
summary:
  the named of the character is actually NUL

files:
  Objects/unicodeobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- 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;
     }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list