]> git.sesse.net Git - xml-template/blobdiff - python/attribute.py
Make the Python tests use lists instead of tuples.
[xml-template] / python / attribute.py
index 0127e806be0e9f843133d0ccab127dfd7f32accc..8a5b95bd231e08bebf4e185a5512ea153c54c38c 100644 (file)
@@ -3,11 +3,11 @@ import xmltemplate
 
 doc = xmltemplate.process_file("../xml/clone.xml", {
        'color': 'blue',
-       '#things': (
+       '#things': [
                { "li": "Raindrops on roses",    "li/class": "even" },
                { "li": "Whiskers on kittens",   "li/class": "odd" },
                { "li": "Bright copper kettles", "li/class": "even" },
                { "li": "Warm, woolen mittens",  "li/class": "odd" }
-       )
+       ]
 })
 print doc.toxml()