[Lxml-checkins] r52198 - in lxml/trunk: . src/lxml

scoder at codespeak.net scoder at codespeak.net
Wed Mar 5 22:18:09 CET 2008


Author: scoder
Date: Wed Mar  5 22:18:09 2008
New Revision: 52198

Modified:
   lxml/trunk/   (props changed)
   lxml/trunk/src/lxml/apihelpers.pxi
Log:
 r3733 at delle:  sbehnel | 2008-03-04 23:53:12 +0100
 cleanup


Modified: lxml/trunk/src/lxml/apihelpers.pxi
==============================================================================
--- lxml/trunk/src/lxml/apihelpers.pxi	(original)
+++ lxml/trunk/src/lxml/apihelpers.pxi	Wed Mar  5 22:18:09 2008
@@ -361,26 +361,26 @@
     If there was no text to collect, return None
     """
     cdef Py_ssize_t scount
-    cdef char* text
+    cdef char* c_text
     cdef xmlNode* c_node_cur
     # check for multiple text nodes
     scount = 0
-    text = NULL
+    c_text = NULL
     c_node_cur = c_node = _textNodeOrSkip(c_node)
     while c_node_cur is not NULL:
         if c_node_cur.content[0] != c'\0':
-            text = c_node_cur.content
+            c_text = c_node_cur.content
         scount = scount + 1
         c_node_cur = _textNodeOrSkip(c_node_cur.next)
 
     # handle two most common cases first
-    if text is NULL:
+    if c_text is NULL:
         if scount > 0:
             return ''
         else:
             return None
     if scount == 1:
-        return funicode(text)
+        return funicode(c_text)
 
     # the rest is not performance critical anymore
     result = ''


More information about the lxml-checkins mailing list