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
+++ b/mercurial/util.py
@@ -27,7 +27,7 @@ class Abort(Exception):
 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 @@ def canonpath(repo, cwd, myname):
     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)