summaryrefslogtreecommitdiffstats
path: root/sip/tdeio/authinfo.sip
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-01-19 23:33:44 +0900
committerMichele Calgaro <[email protected]>2023-01-19 23:33:44 +0900
commit79ced6fbbdda1158aef437760ee0455fb9a9016d (patch)
tree5c1dc33e117f0a4846cb874f41434722741eb388 /sip/tdeio/authinfo.sip
parent12236609d02d708a0076a78145d527e023f47bab (diff)
downloadpytde-79ced6fbbdda1158aef437760ee0455fb9a9016d.tar.gz
pytde-79ced6fbbdda1158aef437760ee0455fb9a9016d.zip
Remove/replace old conditional python code.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'sip/tdeio/authinfo.sip')
-rw-r--r--sip/tdeio/authinfo.sip2
1 files changed, 1 insertions, 1 deletions
diff --git a/sip/tdeio/authinfo.sip b/sip/tdeio/authinfo.sip
index 95ff7da..e3b5a07 100644
--- a/sip/tdeio/authinfo.sip
+++ b/sip/tdeio/authinfo.sip
@@ -151,7 +151,7 @@ typedef TQMap<TQString, TQStringList> KStringListMap;
for (it = map.begin (); it != map.end (); ++it)
{
- PyObject *sKey = SIPBytes_FromString ((const char *)((TQString)it.key ()));
+ PyObject *sKey = PyBytes_FromString ((const char *)((TQString)it.key ()));
PyObject *sData = sipConvertFromInstance ((void *)&it.data (), sipClass_TQStringList, sipTransferObj);
if ((sKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, sKey, sData) < 0))