Skip to content
Snippets Groups Projects
Commit 3b313677 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

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

Fix compilation with Python 3

See merge request !44
parents fcd1f23f 56bbcf46
Branches
No related tags found
1 merge request!44Fix compilation with Python 3
Pipeline #14199 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment