summaryrefslogtreecommitdiffstats
path: root/sip/qt/qfile.sip
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-01-19 23:34:11 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-01-19 23:34:11 +0900
commit1c362264d328c8886d33061ab992750741f7933a (patch)
treec56b482a6539c2992c97f3fe1bcb4d8ec46ef53f /sip/qt/qfile.sip
parent6054548c2546819cb0413bf6438087f5fe8f4ab4 (diff)
downloadpytqt-1c362264d328c8886d33061ab992750741f7933a.tar.gz
pytqt-1c362264d328c8886d33061ab992750741f7933a.zip
Remove/replace old conditional python code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'sip/qt/qfile.sip')
-rw-r--r--sip/qt/qfile.sip4
1 files changed, 2 insertions, 2 deletions
diff --git a/sip/qt/qfile.sip b/sip/qt/qfile.sip
index c89e824..5536c98 100644
--- a/sip/qt/qfile.sip
+++ b/sip/qt/qfile.sip
@@ -136,7 +136,7 @@ public:
Py_INCREF(Py_None);
sipRes = Py_None;
}
- else if ((sipRes = SIPBytes_FromStringAndSize(buf,actlen)) == NULL)
+ else if ((sipRes = PyBytes_FromStringAndSize(buf,actlen)) == NULL)
sipIsErr = 1;
sipFree((void *)buf);
@@ -171,7 +171,7 @@ public:
}
else
{
- sipRes = SIPBytes_FromStringAndSize(buf,actlen);
+ sipRes = PyBytes_FromStringAndSize(buf,actlen);
sipFree((void *)buf);