summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/meter_python.cpp
diff options
context:
space:
mode:
authorDavid C. Rankin <trin@3111skyline.com>2014-09-27 11:36:51 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-09-27 11:36:51 -0500
commit36230c0b5d872388449b20d46d39a9e66a017714 (patch)
treeb6f776f011ca59208d33d314ccb8ffdea65a91a8 /superkaramba/src/meter_python.cpp
parenta594faa6526f7b3259319bc706d88aacd0fd0286 (diff)
downloadtdeutils-36230c0b5d872388449b20d46d39a9e66a017714.tar.gz
tdeutils-36230c0b5d872388449b20d46d39a9e66a017714.zip
Add Python >= v3 support to SuperKaramba
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;
}