[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [pykde4] sip/kio: Compile fix for Python 3.2 and higher.
From:       Simon Edwards <simon () simonzone ! com>
Date:       2012-01-07 19:12:51
Message-ID: 20120107191251.1D3B8A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 54bd6a7628e04efe5e1de53075227713f2526acf by Simon Edwards.
Committed on 07/01/2012 at 20:12.
Pushed by sedwards into branch 'master'.

Compile fix for Python 3.2 and higher.

M  +4    -0    sip/kio/kfileitem.sip

http://commits.kde.org/pykde4/54bd6a7628e04efe5e1de53075227713f2526acf

diff --git a/sip/kio/kfileitem.sip b/sip/kio/kfileitem.sip
index 1904306..86aa772 100644
--- a/sip/kio/kfileitem.sip
+++ b/sip/kio/kfileitem.sip
@@ -236,7 +236,11 @@ SIP_SSIZE_T len, start, stop, step, slicelength, i;
         
         len = sipCpp->count();
         
+#if PY_VERSION_HEX >= 0x03020000
+        if (PySlice_GetIndicesEx(a0, len, &start, &stop, &step, &slicelength) < 0)
+#else
         if (PySlice_GetIndicesEx((PySliceObject *)a0, len, &start, &stop, &step, &slicelength) < 0)
+#endif
             sipIsErr = 1;
         else
         {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic