changeset 754:f021bf27a557

core (xml tools): bad default parameter in XMLUI.addList
author Goffi <goffi@goffi.org>
date Tue, 24 Dec 2013 01:31:18 +0100
parents 7f98f53f6997
children e3ad48a2aab2
files src/tools/xml_tools.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/tools/xml_tools.py	Tue Dec 24 01:31:01 2013 +0100
+++ b/src/tools/xml_tools.py	Tue Dec 24 01:31:18 2013 +0100
@@ -334,8 +334,10 @@
         elem.setAttribute('value', value)
         return elem
 
-    def addList(self, options, name=None, value=None, style=set()):
+    def addList(self, options, name=None, value=None, style=None):
         """Add a list of choices"""
+        if style is None:
+            style = set()
         styles = set(style)
         assert options
         assert styles.issubset(['multi'])