diff options
author | Michele Calgaro <[email protected]> | 2023-01-03 15:29:41 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-01-07 22:14:56 +0900 |
commit | 4ce11cc30df1805459a615960fdec204a975548a (patch) | |
tree | 084f1e1fa404bdf0d082b1a58acf392b5d177326 /sip/tdemdi | |
parent | 065f41b4908b11278d4334e8c85150ec0fd4a9f6 (diff) | |
download | pytde-4ce11cc30df1805459a615960fdec204a975548a.tar.gz pytde-4ce11cc30df1805459a615960fdec204a975548a.zip |
Drop python2 support.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'sip/tdemdi')
-rw-r--r-- | sip/tdemdi/tdemdichildfrm.sip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sip/tdemdi/tdemdichildfrm.sip b/sip/tdemdi/tdemdichildfrm.sip index bd3c674..e55ac41 100644 --- a/sip/tdemdi/tdemdichildfrm.sip +++ b/sip/tdemdi/tdemdichildfrm.sip @@ -220,7 +220,7 @@ protected: { TQString current_key = it.currentKey (); PyObject *a0 = sipConvertFromInstance (¤t_key, sipClass_TQString, sipTransferObj); - PyObject *a1 = PyInt_FromLong ((long) it.current ()); + PyObject *a1 = PyLong_FromLong ((long) it.current ()); if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0)) { @@ -254,7 +254,7 @@ protected: a0 = (TQString *)sipForceConvertToType(key, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr); - if (iserr || !PyInt_Check(value)) + if (iserr || !PyLong_Check(value)) { if (a0) sipReleaseType(a0, sipType_TQString, a0_state); @@ -264,7 +264,7 @@ protected: return 0; } - a1 = (TQWidget::FocusPolicy) PyInt_AS_LONG (value); + a1 = (TQWidget::FocusPolicy) PyLong_AS_LONG (value); qdict->insert (*a0, &a1); |