summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2007-08-06 20:55:47 (GMT)
committerSkip Montanaro <skip@pobox.com>2007-08-06 20:55:47 (GMT)
commite3b10f4c4ce753c8e6c93bffe31cf110b4984b60 (patch)
treee98382033f6b3ad721ea13b7a0b966f08241eb7f /Modules
parent4626458cc57b73dc01edf4987bbc3fe1d4437e59 (diff)
downloadcpython-e3b10f4c4ce753c8e6c93bffe31cf110b4984b60.zip
cpython-e3b10f4c4ce753c8e6c93bffe31cf110b4984b60.tar.gz
cpython-e3b10f4c4ce753c8e6c93bffe31cf110b4984b60.tar.bz2
One char->Py_UNICODE change missed in r56777 - according to Adam Hupp this is the change to make...
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_csv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c
index f9d39ae..b0acc58 100644
--- a/Modules/_csv.c
+++ b/Modules/_csv.c
@@ -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 *