diff options
-rw-r--r-- | Modules/_csv.c | 4 |
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 * |