summaryrefslogtreecommitdiff
path: root/src/lxml/python.pxd
diff options
context:
space:
mode:
authorscoder <none@none>2009-12-04 12:14:40 +0100
committerscoder <none@none>2009-12-04 12:14:40 +0100
commita7ee0cfadc3812f31efe6d4e6066f1ca8a206233 (patch)
tree86efc7d1e8825391a67d7c62fba3d0c6e53dd476 /src/lxml/python.pxd
parente0c7f8a2cbb1abe0bc9b4fabc49ac4221d1ae5cd (diff)
downloadpython-lxml-a7ee0cfadc3812f31efe6d4e6066f1ca8a206233.tar.gz
[svn r4278] r5354@delle: sbehnel | 2009-12-04 12:14:33 +0100
make sure we use the correct 'unicode' type instead of the redeclared one --HG-- branch : trunk
Diffstat (limited to 'src/lxml/python.pxd')
-rw-r--r--src/lxml/python.pxd17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd
index 980b0af5..1dec5465 100644
--- a/src/lxml/python.pxd
+++ b/src/lxml/python.pxd
@@ -1,4 +1,5 @@
from cstd cimport FILE
+cimport cython
cdef extern from "Python.h":
ctypedef struct PyObject
@@ -26,15 +27,15 @@ cdef extern from "Python.h":
cdef bint PyBytes_Check(object obj)
cdef bint PyBytes_CheckExact(object obj)
- cdef unicode PyUnicode_FromEncodedObject(object s, char* encoding,
- char* errors)
+ cdef cython.unicode PyUnicode_FromEncodedObject(object s, char* encoding,
+ char* errors)
cdef bytes PyUnicode_AsEncodedString(object u, char* encoding,
- char* errors)
- cdef unicode PyUnicode_FromFormat(char* format, ...) # Python 3
- cdef unicode PyUnicode_Decode(char* s, Py_ssize_t size,
- char* encoding, char* errors)
- cdef unicode PyUnicode_DecodeUTF8(char* s, Py_ssize_t size, char* errors)
- cdef unicode PyUnicode_DecodeLatin1(char* s, Py_ssize_t size, char* errors)
+ char* errors)
+ cdef cython.unicode PyUnicode_FromFormat(char* format, ...) # Python 3
+ cdef cython.unicode PyUnicode_Decode(char* s, Py_ssize_t size,
+ char* encoding, char* errors)
+ cdef cython.unicode PyUnicode_DecodeUTF8(char* s, Py_ssize_t size, char* errors)
+ cdef cython.unicode PyUnicode_DecodeLatin1(char* s, Py_ssize_t size, char* errors)
cdef bytes PyUnicode_AsUTF8String(object ustring)
cdef bytes PyUnicode_AsASCIIString(object ustring)
cdef char* PyUnicode_AS_DATA(object ustring)