diff options
| author | scoder <none@none> | 2010-12-29 19:59:27 +0100 |
|---|---|---|
| committer | scoder <none@none> | 2010-12-29 19:59:27 +0100 |
| commit | b52756f12c00a38510c7942e26ba5b8664826124 (patch) | |
| tree | dbbcfb1797a2e05b1f50e98c748800f6744d6a1c /src/lxml/extensions.pxi | |
| parent | 6019ba8c0d763c29c4d4c378412a0e933ccdf0e8 (diff) | |
| download | python-lxml-b52756f12c00a38510c7942e26ba5b8664826124.tar.gz | |
[svn r4505] code cleanup: drop clumsy redeclaration of builtin types known in Cython 0.14
--HG--
branch : trunk
Diffstat (limited to 'src/lxml/extensions.pxi')
| -rw-r--r-- | src/lxml/extensions.pxi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lxml/extensions.pxi b/src/lxml/extensions.pxi index 6712d151..a45b3946 100644 --- a/src/lxml/extensions.pxi +++ b/src/lxml/extensions.pxi @@ -651,7 +651,7 @@ cdef _Element _instantiateElementFromXPath(xmlNode* c_node, _Document doc, ################################################################################ # special str/unicode subclasses -cdef class _ElementUnicodeResult(python.unicode): +cdef class _ElementUnicodeResult(unicode): cdef _Element _parent cdef readonly object is_tail cdef readonly object is_text @@ -661,8 +661,8 @@ cdef class _ElementUnicodeResult(python.unicode): def getparent(self): return self._parent -class _ElementStringResult(str): - # we need to use a Python class here, str cannot be C-subclassed +class _ElementStringResult(bytes): + # we need to use a Python class here, bytes cannot be C-subclassed # in Pyrex/Cython def getparent(self): return self._parent |
