meld r1203 - trunk



Author: vincele
Date: Mon Mar  2 22:18:47 2009
New Revision: 1203
URL: http://svn.gnome.org/viewvc/meld?rev=1203&view=rev

Log:
Dangerous default value


Modified:
   trunk/gnomeglade.py

Modified: trunk/gnomeglade.py
==============================================================================
--- trunk/gnomeglade.py	(original)
+++ trunk/gnomeglade.py	Mon Mar  2 22:18:47 2009
@@ -36,10 +36,12 @@
     object, which is sadly sometimes necessary.
     """
 
-    def __init__(self, filename, root, override={}):
+    def __init__(self, filename, root, override=None):
         """Load the widgets from the node 'root' in file 'filename'.
         """
         gtk.glade.set_custom_handler(self.get_custom_handler)
+        if override is None:
+            override = {}
         self.xml = gtk.glade.XML(filename, root, typedict=override)
         self.xml.signal_autoconnect(self)
         self.widget = getattr(self, root)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]