From: sgunderson@bigfoot.com <> Date: Wed, 6 Sep 2006 15:36:22 +0000 (+0200) Subject: Make the Python tests use lists instead of tuples. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d7b823c065dda5ae53023bcb3b2546c77cde97d9;p=xml-template Make the Python tests use lists instead of tuples. --- diff --git a/python/attribute.py b/python/attribute.py index 0127e80..8a5b95b 100644 --- a/python/attribute.py +++ b/python/attribute.py @@ -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() diff --git a/python/attribute2.py b/python/attribute2.py index d7caca6..4f25464 100644 --- a/python/attribute2.py +++ b/python/attribute2.py @@ -3,11 +3,11 @@ import xmltemplate doc = xmltemplate.process_file("../xml/clone.xml", { "color": "blue", - "#things": xmltemplate.alternate("li/class", ( + "#things": xmltemplate.alternate("li/class", [ { "li": "Raindrops on roses" }, { "li": "Whiskers on kittens" }, { "li": "Bright copper kettles" }, { "li": "Warm, woolen mittens"}, - ), "odd", "even") + ], "odd", "even") }); print doc.toxml() diff --git a/python/clone.py b/python/clone.py index 65e9519..134cdb5 100644 --- a/python/clone.py +++ b/python/clone.py @@ -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()