Python 3: Fix a string function

This commit is contained in:
Houzéfa Abbasbhay 2014-12-01 15:05:04 +01:00 committed by Benjamin Dauvergne
parent a4b1749c3c
commit 70b9d765bc
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ typedef int Py_ssize_t;
// Python 3 has removed PyString and related functions, in favor of PyBytes & PyUnicode.
#if PY_MAJOR_VERSION >= 3
#define PyString_AsString PyUnicode_AsUnicode
#define PyString_AsString PyUnicode_AsUTF8
#define PyString_Check PyUnicode_Check
#define PyString_FromFormat PyUnicode_FromFormat
#define PyString_FromString PyUnicode_FromString