Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 1062:6d5a62a549fa
pep-0008 cleanup
- Don't use spaces around the '=' sign when used to indicate a
keyword argument or a default parameter value.
author | benoit.boissinot@ens-lyon.fr |
---|---|
date | Fri, 26 Aug 2005 13:06:58 +0200 |
parents | 503aaf19a040 |
children | e254bcbfe636 |
line wrap: on
line diff
--- a/mercurial/util.py Fri Aug 26 02:03:35 2005 -0700 +++ b/mercurial/util.py Fri Aug 26 13:06:58 2005 +0200 @@ -27,7 +27,7 @@ def always(fn): return True def never(fn): return False -def globre(pat, head = '^', tail = '$'): +def globre(pat, head='^', tail='$'): "convert a glob pattern into a regexp" i, n = 0, len(pat) res = '' @@ -98,7 +98,7 @@ else: raise Abort('%s not under repository root' % myname) -def matcher(repo, cwd, names, inc, exc, head = ''): +def matcher(repo, cwd, names, inc, exc, head=''): def patkind(name): for prefix in 're:', 'glob:', 'path:', 'relpath:': if name.startswith(prefix): return name.split(':', 1)