diff options
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 */ |