diff hgext/mq.py @ 26345:2aa0dde846b4

mq: remove a mutable default argument Mutable default arguments are know to the state of California to cause bugs. The underlying function already handle "None" as an option value, so we do not need to do anything else.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 24 Sep 2015 00:50:06 -0700
parents ce26928cbe41
children 8bd2759f1fa7
line wrap: on
line diff
--- a/hgext/mq.py	Thu Sep 24 00:49:02 2015 -0700
+++ b/hgext/mq.py	Thu Sep 24 00:50:06 2015 -0700
@@ -483,7 +483,7 @@
         self.guardsdirty = False
         self.activeguards = None
 
-    def diffopts(self, opts={}, patchfn=None):
+    def diffopts(self, opts=None, patchfn=None):
         diffopts = patchmod.diffopts(self.ui, opts)
         if self.gitmode == 'auto':
             diffopts.upgrade = True