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/misc_python.cpp | |
parent | a594faa6526f7b3259319bc706d88aacd0fd0286 (diff) | |
download | tdeutils-36230c0b5d872388449b20d46d39a9e66a017714.tar.gz tdeutils-36230c0b5d872388449b20d46d39a9e66a017714.zip |
Add Python >= v3 support to SuperKaramba
Diffstat (limited to 'superkaramba/src/misc_python.cpp')
-rw-r--r-- | superkaramba/src/misc_python.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/superkaramba/src/misc_python.cpp b/superkaramba/src/misc_python.cpp index 06b679d..271ec51 100644 --- a/superkaramba/src/misc_python.cpp +++ b/superkaramba/src/misc_python.cpp @@ -343,7 +343,7 @@ PyObject* py_read_theme_file(PyObject *, PyObject *args) return NULL; karamba* k = (karamba*)widget; TQByteArray ba = k->theme().readThemeFile(file); - return PyString_FromStringAndSize(ba.data(), ba.size()); + return PyBytes_FromStringAndSize(ba.data(), ba.size()); } /* now a method we need to expose to Python */ |