summaryrefslogtreecommitdiff
path: root/src/lxml/python.pxd
diff options
context:
space:
mode:
authorscoder <none@none>2006-05-10 09:30:52 +0200
committerscoder <none@none>2006-05-10 09:30:52 +0200
commit54d4a81894ddacde59f9341ca4352bc62624638d (patch)
tree4702554ff2b140cb323a04da7c18ab19c4471929 /src/lxml/python.pxd
parenteeb392ee4baaf75f60eda8c1d2a5f37cba8e6bdc (diff)
downloadpython-lxml-54d4a81894ddacde59f9341ca4352bc62624638d.tar.gz
[svn r1112] fix str() decoding bug in _XSLTResultTree.__str__ for non-UTF8 encodings, make unicode() work on _XSLTResultTree
--HG-- branch : trunk
Diffstat (limited to 'src/lxml/python.pxd')
-rw-r--r--src/lxml/python.pxd2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd
index 73c12f8c..c802fbee 100644
--- a/src/lxml/python.pxd
+++ b/src/lxml/python.pxd
@@ -15,6 +15,8 @@ cdef extern from "Python.h":
cdef object PyUnicode_FromEncodedObject(object s, char* encoding,
char* errors)
+ cdef object PyUnicode_Decode(char* s, Py_ssize_t size,
+ char* encoding, char* errors)
cdef object PyUnicode_DecodeUTF8(char* s, Py_ssize_t size, char* errors)
cdef object PyUnicode_AsUTF8String(object ustring)
cdef char* PyUnicode_AS_DATA(object ustring)