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 *
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to