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/tdeui/kkeydialog.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/tdeui/kkeydialog.sip')
-rw-r--r-- | sip/tdeui/kkeydialog.sip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sip/tdeui/kkeydialog.sip b/sip/tdeui/kkeydialog.sip index 41d8b3a..60e9c28 100644 --- a/sip/tdeui/kkeydialog.sip +++ b/sip/tdeui/kkeydialog.sip @@ -206,7 +206,7 @@ typedef TQDict<int> IntDict; { TQString current_key = it.currentKey (); PyObject *a0 = sipConvertFromInstance (¤t_key, sipClass_TQCString, 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)) { @@ -240,7 +240,7 @@ typedef TQDict<int> IntDict; 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); @@ -250,7 +250,7 @@ typedef TQDict<int> IntDict; return 0; } - a1 = (int) PyInt_AS_LONG (value); + a1 = (int) PyLong_AS_LONG (value); qdict->insert (*a0, &a1); |