diff src/tools/xml_tools.py @ 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 969562c4761b
children 93bd868b8fb6
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'])