# HG changeset patch # User Pierre-Yves David # Date 2015-09-24 07:50:06 # Node ID 2aa0dde846b4e86b1fc5693c0c01d13a33257613 # Parent cd9cc7f3042739b88cd6e28d940be10648441560 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. diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -483,7 +483,7 @@ class queue(object): 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