[Python-3000-checkins] r56779 - python/branches/py3k-struni/Modules/_csv.c

skip.montanaro python-3000-checkins at python.org
Mon Aug 6 22:55:48 CEST 2007


Author: skip.montanaro
Date: Mon Aug  6 22:55:47 2007
New Revision: 56779

Modified:
   python/branches/py3k-struni/Modules/_csv.c
Log:
One char->Py_UNICODE change missed in r56777 - according to Adam Hupp this is the change to make...

Modified: python/branches/py3k-struni/Modules/_csv.c
==============================================================================
--- python/branches/py3k-struni/Modules/_csv.c	(original)
+++ python/branches/py3k-struni/Modules/_csv.c	Mon Aug  6 22:55:47 2007
@@ -169,14 +169,14 @@
 }
 
 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 *


More information about the Python-3000-checkins mailing list