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

scoder at codespeak.net scoder at codespeak.net
Mon Jan 21 19:39:20 CET 2008


Author: scoder
Date: Mon Jan 21 19:39:18 2008
New Revision: 50848

Modified:
   lxml/trunk/   (props changed)
   lxml/trunk/src/lxml/html/diff.py
Log:
 r3274 at delle:  sbehnel | 2008-01-21 11:24:48 +0100
 fix Py2.4-isms


Modified: lxml/trunk/src/lxml/html/diff.py
==============================================================================
--- lxml/trunk/src/lxml/html/diff.py	(original)
+++ lxml/trunk/src/lxml/html/diff.py	Mon Jan 21 19:39:18 2008
@@ -320,7 +320,7 @@
                 name, pos, tag = tag_stack.pop()
                 balanced[pos] = tag
             elif tag_stack:
-                start.extend(tag for name, pos, tag in tag_stack)
+                start.extend([tag for name, pos, tag in tag_stack])
                 tag_stack = []
                 end.append(chunk)
             else:
@@ -702,8 +702,8 @@
     The text representation of the start tag for a tag.
     """
     return '<%s%s>' % (
-        el.tag, ''.join(' %s="%s"' % (name, cgi.escape(value, True))
-                        for name, value in el.attrib.items()))
+        el.tag, ''.join([' %s="%s"' % (name, cgi.escape(value, True))
+                         for name, value in el.attrib.items())])
 
 def end_tag(el):
     """ The text representation of an end tag for a tag.  Includes


More information about the lxml-checkins mailing list