Mercurial > cpython-lru_cache-weakref
diff Modules/_csv.c @ 42463:b10ba38e6b80
One char->Py_UNICODE change missed in r56777 - according to Adam Hupp this is the change to make...
| author | Skip Montanaro <skip@pobox.com> |
|---|---|
| date | Mon, 06 Aug 2007 20:55:47 +0000 |
| parents | 8b45f2297dbd |
| children | 3f1fcd080ec4 |
line wrap: on
line diff
--- a/Modules/_csv.c Mon Aug 06 19:32:18 2007 +0000 +++ b/Modules/_csv.c Mon Aug 06 20:55:47 2007 +0000 @@ -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 *
