Submitter | Matt Harbison |
---|---|
Date | Jan. 3, 2019, 5:30 a.m. |
Message ID | <f208ece681e49dca806e.1546493448@Envy> |
Download | mbox | patch |
Permalink | /patch/37433/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/hgext3rd/evolve/exthelper.py b/hgext3rd/evolve/exthelper.py --- a/hgext3rd/evolve/exthelper.py +++ b/hgext3rd/evolve/exthelper.py @@ -281,7 +281,7 @@ return keyword return dec - def wrapcommand(self, command, extension=None, opts=[]): + def wrapcommand(self, command, extension=None, opts=None): """Decorated function is a command wrapper The name of the command must be given as the decorator argument. @@ -304,6 +304,8 @@ command. """ + if opts is None: + opts = [] def dec(wrapper): if extension is None: self._commandwrappers.append((command, wrapper, opts))