diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-10 18:50:57 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-01-13 03:28:05 +0100 |
commit | d85bd77116b2cf7e7565a0905b53ff0fa2a5b50e (patch) | |
tree | 4a50744dcf8fbfeee8098646bb75332b7e1bfaec /dcoppython/shell/importedmodules.cpp | |
parent | 3b188e184dc679e04975fbc2b572287fdcff0cca (diff) | |
download | tdebindings-d85bd77116b2cf7e7565a0905b53ff0fa2a5b50e.tar.gz tdebindings-d85bd77116b2cf7e7565a0905b53ff0fa2a5b50e.zip |
Drop support for python2.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'dcoppython/shell/importedmodules.cpp')
-rw-r--r-- | dcoppython/shell/importedmodules.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dcoppython/shell/importedmodules.cpp b/dcoppython/shell/importedmodules.cpp index 4b2a23bb..cc352954 100644 --- a/dcoppython/shell/importedmodules.cpp +++ b/dcoppython/shell/importedmodules.cpp @@ -40,8 +40,8 @@ namespace PythonDCOP { return 0; PyObject* args = PyTuple_New( 2 ); - PyTuple_SetItem( args, 0, PyString_FromString( appname ) ); - PyTuple_SetItem( args, 1, PyString_FromString( objname ) ); + PyTuple_SetItem( args, 0, PyBytes_FromString( appname ) ); + PyTuple_SetItem( args, 1, PyBytes_FromString( objname ) ); return PyObject_CallObject( cl, args ); } |