From e3b10f4c4ce753c8e6c93bffe31cf110b4984b60 Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Mon, 6 Aug 2007 20:55:47 +0000 Subject: One char->Py_UNICODE change missed in r56777 - according to Adam Hupp this is the change to make... --- Modules/_csv.c | 4 ++-- 1 file 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 * -- cgit v0.12