diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-03 15:29:41 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-07 22:14:56 +0900 |
commit | 4ce11cc30df1805459a615960fdec204a975548a (patch) | |
tree | 084f1e1fa404bdf0d082b1a58acf392b5d177326 /sip/tdeio/kservicetype.sip | |
parent | 065f41b4908b11278d4334e8c85150ec0fd4a9f6 (diff) | |
download | pytde-4ce11cc30df1805459a615960fdec204a975548a.tar.gz pytde-4ce11cc30df1805459a615960fdec204a975548a.zip |
Drop python2 support.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'sip/tdeio/kservicetype.sip')
-rw-r--r-- | sip/tdeio/kservicetype.sip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sip/tdeio/kservicetype.sip b/sip/tdeio/kservicetype.sip index 7d261b8..5d093e7 100644 --- a/sip/tdeio/kservicetype.sip +++ b/sip/tdeio/kservicetype.sip @@ -155,7 +155,7 @@ protected: TQString acpp = it.key (); int bcpp = (int) it.data (); PyObject *ainst; - PyObject *binst = PyInt_FromLong (bcpp); + PyObject *binst = PyLong_FromLong (bcpp); if (((ainst = sipConvertFromNewType(new TQString (acpp), sipType_TQString, sipTransferObj)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { @@ -189,7 +189,7 @@ protected: acpp = (TQString *)sipForceConvertToType(aelem, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - if (iserr || !PyInt_Check(belem)) + if (iserr || !PyLong_Check(belem)) { if (acpp_state) sipReleaseType(acpp, sipType_TQString, acpp_state); @@ -199,7 +199,7 @@ protected: return 0; } - bcpp = (TQVariant::Type) PyInt_AS_LONG(belem); + bcpp = (TQVariant::Type) PyLong_AS_LONG(belem); cppmap->insert (*acpp, bcpp); |