diff options
| author | Stefan Behnel <stefan_ml@behnel.de> | 2012-06-18 15:08:37 +0200 |
|---|---|---|
| committer | Stefan Behnel <stefan_ml@behnel.de> | 2012-06-18 15:08:37 +0200 |
| commit | 8b81609515a6704a25abe2b347965dad2b02971a (patch) | |
| tree | 90d745016003b213da583f17a9c1a9f49b29e58f /src/lxml/extensions.pxi | |
| parent | c95e5f985c5095711bd484458b826c32872fcb7d (diff) | |
| download | python-lxml-8b81609515a6704a25abe2b347965dad2b02971a.tar.gz | |
minor code cleanup
Diffstat (limited to 'src/lxml/extensions.pxi')
| -rw-r--r-- | src/lxml/extensions.pxi | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lxml/extensions.pxi b/src/lxml/extensions.pxi index be31d26c..286fb752 100644 --- a/src/lxml/extensions.pxi +++ b/src/lxml/extensions.pxi @@ -466,10 +466,9 @@ cdef class _ExsltRegExp: if c_text is NULL: raise MemoryError() try: - s = funicode(c_text) + return funicode(c_text) finally: tree.xmlFree(c_text) - return s else: return unicode(firstnode) else: |
