mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Merged revisions 78559,78561-78562 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78559 | andrew.kuchling | 2010-03-01 20:45:21 +0100 (Mo, 01 Mär 2010) | 1 line #7637: update discussion of minidom.unlink() and garbage collection ........ r78561 | andrew.kuchling | 2010-03-01 20:51:43 +0100 (Mo, 01 Mär 2010) | 1 line #7191: describe more details of wbits parameter ........ r78562 | andrew.kuchling | 2010-03-01 21:11:57 +0100 (Mo, 01 Mär 2010) | 1 line #7637: avoid repeated-concatenation antipattern in example ........
This commit is contained in:
parent
6530f7a322
commit
2ee18c6ca6
3 changed files with 15 additions and 21 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue