Commit 3b313677 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de

Merge branch 'fix-compilation-with-python-3' into 'master'

Fix compilation with Python 3

See merge request !44
parents fcd1f23f 56bbcf46
Pipeline #14199 passed with stage
in 59 minutes and 31 seconds
......@@ -335,7 +335,7 @@ class Reference
{
assertPyObject("str()");
#if PY_MAJOR_VERSION >= 3
char* s = PyUnicode_AsUTF8(PyObject_Str(p_));
const char* s = PyUnicode_AsUTF8(PyObject_Str(p_));
#else
char* s = PyString_AsString(PyObject_Str(p_));
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment