meld r1204 - trunk
- From: vincele svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1204 - trunk
- Date: Mon,  2 Mar 2009 22:20:33 +0000 (UTC)
Author: vincele
Date: Mon Mar  2 22:20:33 2009
New Revision: 1204
URL: http://svn.gnome.org/viewvc/meld?rev=1204&view=rev
Log:
Dangerous default value: use () instead of []
Modified:
   trunk/misc.py
Modified: trunk/misc.py
==============================================================================
--- trunk/misc.py	(original)
+++ trunk/misc.py	Mon Mar  2 22:20:33 2009
@@ -37,7 +37,7 @@
         return ((whitespace_re.search(s) == None) and s or ('"%s"' % s))
     return " ".join( [ quote(x) for x in command ] )
 
-def run_dialog( text, parent=None, messagetype=gtk.MESSAGE_WARNING, buttonstype=gtk.BUTTONS_OK, extrabuttons=[]):
+def run_dialog( text, parent=None, messagetype=gtk.MESSAGE_WARNING, buttonstype=gtk.BUTTONS_OK, extrabuttons=()):
     """Run a dialog with text 'text'.
        Extra buttons are passed as tuples of (button label, response id).
     """
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]