summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorHouzéfa Abbasbhay <houzefa.abba@xcg-consulting.fr>2014-12-01 14:05:04 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2015-02-12 18:21:12 (GMT)
commit70b9d765bcbc20d4e570a23e0ab99efa493c4afb (patch)
treeb6da8ec7a822e74b87c434f9325ec07db77879af /bindings
parenta4b1749c3ca7baafbf188539d8b96f1cd131a968 (diff)
downloadlasso-70b9d765bcbc20d4e570a23e0ab99efa493c4afb.zip
lasso-70b9d765bcbc20d4e570a23e0ab99efa493c4afb.tar.gz
lasso-70b9d765bcbc20d4e570a23e0ab99efa493c4afb.tar.bz2
Python 3: Fix a string function
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/wrapper_top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c
index 53083da..5136c98 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