diff options
author | David C. Rankin <trin@3111skyline.com> | 2014-09-27 11:36:51 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-09-27 11:36:51 -0500 |
commit | 36230c0b5d872388449b20d46d39a9e66a017714 (patch) | |
tree | b6f776f011ca59208d33d314ccb8ffdea65a91a8 /superkaramba/src/meter_python.cpp | |
parent | a594faa6526f7b3259319bc706d88aacd0fd0286 (diff) | |
download | tdeutils-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.cpp | 6 |
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; } |