Skip to content
Snippets Groups Projects

Fix compilation with Python 3

Merged oliver.sander_at_tu-dresden.de requested to merge fix-compilation-with-python-3 into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading