]> git.sesse.net Git - xml-template/blobdiff - python/clone.py
Add Python 3 support.
[xml-template] / python / clone.py
index 65e9519b05e4fb611a15e91a73fbe3c6ea897c9c..694b1b59b6787e8ea8028fd0105ecebf250dd6ca 100644 (file)
@@ -3,11 +3,11 @@ import xmltemplate
 
 doc = xmltemplate.process_file("../xml/clone.xml", {
        'color': 'blue',
-       '#things': (
+       '#things': [
                { 'li': 'Raindrops on roses' },
                { 'li': 'Whiskers on kittens' },
                { 'li': 'Bright copper kettles' },
                { 'li': 'Warm, woolen mittens' }
-       )
+       ]
 })
-print doc.toxml()
+print(doc.toxml())