summaryrefslogtreecommitdiff
path: root/src/lxml/python.pxd
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2012-12-21 22:48:02 +0100
committerStefan Behnel <stefan_ml@behnel.de>2012-12-21 22:48:02 +0100
commitc37f36f2843f0f9c1ef938920b47978d6e28ed4e (patch)
treeafea03f1df470ebb8cda16fc7728d4358e06101e /src/lxml/python.pxd
parent4c6a7f4eba4208cbedc653e3277ebd7dc79b9614 (diff)
downloadpython-lxml-c37f36f2843f0f9c1ef938920b47978d6e28ed4e.tar.gz
add compile time option for Py2 that makes the API always return Unicode strings for names and text instead of byte strings for pure ASCII
Diffstat (limited to 'src/lxml/python.pxd')
-rw-r--r--src/lxml/python.pxd1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd
index 99e19ad9..980f6d0d 100644
--- a/src/lxml/python.pxd
+++ b/src/lxml/python.pxd
@@ -129,5 +129,6 @@ cdef extern from "etree_defs.h": # redefines some functions as macros
cdef bint _isString(object obj)
cdef const_char* _fqtypename(object t)
cdef object PY_NEW(object t)
+ cdef bint LXML_UNICODE_STRINGS
cdef bint IS_PYTHON3
cdef bint IS_PYPY