summaryrefslogtreecommitdiffstats
path: root/sip/tdecore/kmacroexpander.sip
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-01-19 23:33:44 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-01-19 23:33:44 +0900
commit79ced6fbbdda1158aef437760ee0455fb9a9016d (patch)
tree5c1dc33e117f0a4846cb874f41434722741eb388 /sip/tdecore/kmacroexpander.sip
parent12236609d02d708a0076a78145d527e023f47bab (diff)
downloadpytde-79ced6fbbdda1158aef437760ee0455fb9a9016d.tar.gz
pytde-79ced6fbbdda1158aef437760ee0455fb9a9016d.zip
Remove/replace old conditional python code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'sip/tdecore/kmacroexpander.sip')
-rw-r--r--sip/tdecore/kmacroexpander.sip4
1 files changed, 2 insertions, 2 deletions
diff --git a/sip/tdecore/kmacroexpander.sip b/sip/tdecore/kmacroexpander.sip
index bb3a39d..8d0d3d0 100644
--- a/sip/tdecore/kmacroexpander.sip
+++ b/sip/tdecore/kmacroexpander.sip
@@ -143,7 +143,7 @@ TQString expandMacrosShellQuote (const TQString&, const TQMap<TQStr
for (it = map.begin (); it != map.end (); ++it)
{
TQChar acpp = it.key ();
- PyObject *binst = SIPBytes_FromString ((char *)((TQString *)&it.data ()));
+ PyObject *binst = PyBytes_FromString ((char *)((TQString *)&it.data ()));
PyObject *ainst;
if (((ainst = sipConvertFromNewType(new TQChar(acpp), sipType_TQChar, sipTransferObj)) == NULL)
|| (binst == NULL)
@@ -232,7 +232,7 @@ TQString expandMacrosShellQuote (const TQString&, const TQMap<TQStr
for (it = map.begin (); it != map.end (); ++it)
{
TQStringList bcpp = it.data ();
- PyObject *ainst = SIPBytes_FromString ((char *)((TQString *)&it.key ()));
+ PyObject *ainst = PyBytes_FromString ((char *)((TQString *)&it.key ()));
PyObject *binst;
if (((binst = sipConvertFromNewType(new TQStringList(bcpp), sipType_TQStringList, sipTransferObj)) == NULL)
|| (ainst == NULL)