#7637: avoid repeated-concatenation antipattern in example
This commit is contained in:
parent
66dab172fe
commit
fe6f07c0ac
|
@ -19,11 +19,11 @@ document = """\
|
|||
dom = xml.dom.minidom.parseString(document)
|
||||
|
||||
def getText(nodelist):
|
||||
rc = ""
|
||||
rc = []
|
||||
for node in nodelist:
|
||||
if node.nodeType == node.TEXT_NODE:
|
||||
rc = rc + node.data
|
||||
return rc
|
||||
rc.append(node.data)
|
||||
return ''.join(rc)
|
||||
|
||||
def handleSlideshow(slideshow):
|
||||
print "<html>"
|
||||
|
|
Loading…
Reference in New Issue