From 70b9d765bcbc20d4e570a23e0ab99efa493c4afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Houz=C3=A9fa=20Abbasbhay?= Date: Mon, 1 Dec 2014 15:05:04 +0100 Subject: [PATCH] Python 3: Fix a string function --- bindings/python/wrapper_top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c index 53083da4..5136c98a 100644 --- a/bindings/python/wrapper_top.c +++ b/bindings/python/wrapper_top.c @@ -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