Permalink
Browse files

fix C compiler warning regarding PySliceObject vs. PyObject

  • Loading branch information...
1 parent 11da137 commit c4fb118c6bdd37403116c9bae19194c4fd5d55ff @scoder scoder committed Jul 31, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/lxml/python.pxd
View
@@ -74,6 +74,9 @@ cdef extern from "Python.h":
cdef bint PyTuple_CheckExact(object instance)
cdef bint PySlice_Check(object instance)
+ ctypedef class __builtin__.slice [object PySliceObject]:
+ pass
+
cdef int _PyEval_SliceIndex(object value, Py_ssize_t* index) except 0
cdef int PySlice_GetIndicesEx(slice slice, Py_ssize_t length,
Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step,

0 comments on commit c4fb118

Please sign in to comment.