# HG changeset patch # User Pierre-Yves David # Date 1443081643 25200 # Node ID 188c1e9506f5d1bfbc0928011bb7a371f995fe3c # Parent c786dd6cae572829aa552252cb6562bff18f0ef7 match: remove a mutable default argument Mutable default arguments are know to the state of California to cause bugs. We added support for None in the underlying function in the parent commit. therefore we do not need to do anything but passing None. diff -r c786dd6cae57 -r 188c1e9506f5 mercurial/scmutil.py --- a/mercurial/scmutil.py Thu Sep 24 01:00:25 2015 -0700 +++ b/mercurial/scmutil.py Thu Sep 24 01:00:43 2015 -0700 @@ -778,7 +778,8 @@ pats = [] return m, pats -def match(ctx, pats=(), opts={}, globbed=False, default='relpath', badfn=None): +def match(ctx, pats=(), opts=None, globbed=False, default='relpath', + badfn=None): '''Return a matcher that will warn about bad matches.''' return matchandpats(ctx, pats, opts, globbed, default, badfn=badfn)[0]