--- pykde4-4.6.2.old/python/pykde4/sip/kio/kfileitem.sip 2011-05-01 07:57:05.731503372 -0500 +++ pykde4-4.6.2/python/pykde4/sip/kio/kfileitem.sip 2011-05-01 07:57:50.828925154 -0500 @@ -236,7 +236,13 @@ len = sipCpp->count(); - if (PySlice_GetIndicesEx((PySliceObject *)a0, len, &start, &stop, &step, &slicelength) < 0) + if (PySlice_GetIndicesEx( +#if PY_VERSION_HEX >= 0x03020000 + (PyObject *)a0, +#else + (PySliceObject *)a0, +#endif + len, &start, &stop, &step, &slicelength) < 0) sipIsErr = 1; else {