summaryrefslogtreecommitdiffstats
path: root/Demo/xml/roundtrip.py
diff options
context:
space:
mode:
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 8d7d437..b0e131e 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 attrs.items():
+ for (name, value) in list(attrs.items()):
self._out.write(' %s="%s"' % (name, saxutils.escape(value)))
self._out.write('>')