summaryrefslogtreecommitdiffstats
path: root/Demo/xml/roundtrip.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2007-08-06 21:07:53 (GMT)
committerSkip Montanaro <skip@pobox.com>2007-08-06 21:07:53 (GMT)
commit1e8ce58f5d0db22714d65ff440045a7526ed394d (patch)
treef705fb923334cffa32492a5bddfcca46ecc27f0a /Demo/xml/roundtrip.py
parent28a181cbe82bc79df3b881b79b19e12b2e39911b (diff)
downloadcpython-1e8ce58f5d0db22714d65ff440045a7526ed394d.zip
cpython-1e8ce58f5d0db22714d65ff440045a7526ed394d.tar.gz
cpython-1e8ce58f5d0db22714d65ff440045a7526ed394d.tar.bz2
remove most uses of list(somedict.keys()) in Demo scripts
Diffstat (limited to 'Demo/xml/roundtrip.py')
-rw-r--r--Demo/xml/roundtrip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/xml/roundtrip.py b/Demo/xml/roundtrip.py
index b0e131e..8d7d437 100644
--- a/Demo/xml/roundtrip.py
+++ b/Demo/xml/roundtrip.py
@@ -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('>')