summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/meter_python.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'superkaramba/src/meter_python.cpp')
-rw-r--r--superkaramba/src/meter_python.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/superkaramba/src/meter_python.cpp b/superkaramba/src/meter_python.cpp
index 12c3a7e..c5d745b 100644
--- a/superkaramba/src/meter_python.cpp
+++ b/superkaramba/src/meter_python.cpp
@@ -93,9 +93,9 @@ TQString fromUcs4(TQ_UINT32* ucs4)
TQString PyString2TQString(PyObject* text)
{
TQString qtext;
- if (PyString_CheckExact(text))
+ if (PyBytes_CheckExact(text))
{
- char* t = PyString_AsString(text);
+ char* t = PyBytes_AsString(text);
qtext.setAscii(t);
}
else if (PyUnicode_CheckExact(text))
@@ -148,7 +148,7 @@ PyObject* TQString2PyString(TQString string)
}
else
- pyString = PyString_FromString("");
+ pyString = PyBytes_FromString("");
return pyString;
}