Implement PEP 393.

This commit is contained in:
Martin v. Löwis 2011-09-28 07:41:54 +02:00
parent 48d49497c5
commit d63a3b8beb
102 changed files with 8153 additions and 5431 deletions

View file

@ -128,7 +128,7 @@ get_nullchar_as_None(Py_UNICODE c)
return Py_None;
}
else
return PyUnicode_FromUnicode((Py_UNICODE *)&c, 1);
return PyUnicode_FromOrdinal(c);
}
static PyObject *