mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
remove most uses of list(somedict.keys()) in Demo scripts
This commit is contained in:
parent
28a181cbe8
commit
1e8ce58f5d
17 changed files with 31 additions and 46 deletions
|
@ -22,7 +22,7 @@ class ContentGenerator(handler.ContentHandler):
|
|||
|
||||
def startElement(self, name, attrs):
|
||||
self._out.write('<' + name)
|
||||
for (name, value) in list(attrs.items()):
|
||||
for (name, value) in attrs.items():
|
||||
self._out.write(' %s="%s"' % (name, saxutils.escape(value)))
|
||||
self._out.write('>')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue