]> granicus.if.org Git - python/commitdiff
One char->Py_UNICODE change missed in r56777 - according to Adam Hupp this is the...
authorSkip Montanaro <skip@pobox.com>
Mon, 6 Aug 2007 20:55:47 +0000 (20:55 +0000)
committerSkip Montanaro <skip@pobox.com>
Mon, 6 Aug 2007 20:55:47 +0000 (20:55 +0000)
Modules/_csv.c

index f9d39ae70f3fe8162c8415c89ed161388062e354..b0acc58a2056517aa72f3e0ef1f0cd2fc82ba3e6 100644 (file)
@@ -169,14 +169,14 @@ get_string(PyObject *str)
 }
 
 static PyObject *
-get_nullchar_as_None(char c)
+get_nullchar_as_None(Py_UNICODE c)
 {
         if (c == '\0') {
                 Py_INCREF(Py_None);
                 return Py_None;
         }
         else
-                return PyUnicode_DecodeASCII((char*)&c, 1, NULL);
+                return PyUnicode_FromUnicode((Py_UNICODE *)&c, 1);
 }
 
 static PyObject *