remove default arg from patkind
authorMatt Mackall <mpm@selenic.com>
Mon, 12 May 2008 11:37:08 -0500
changeset 6595 99a92acafdb9
parent 6594 fca1688f0459
child 6596 7fe4610cf920
remove default arg from patkind
mercurial/util.py
--- a/mercurial/util.py	Mon May 12 11:37:08 2008 -0500
+++ b/mercurial/util.py	Mon May 12 11:37:08 2008 -0500
@@ -277,12 +277,12 @@
         ret.append(p)
     return ret
 
-def patkind(name, dflt_pat='glob'):
+def patkind(name, default):
     """Split a string into an optional pattern kind prefix and the
     actual pattern."""
     for prefix in 're', 'glob', 'path', 'relglob', 'relpath', 'relre':
         if name.startswith(prefix + ':'): return name.split(':', 1)
-    return dflt_pat, name
+    return default, name
 
 def globre(pat, head='^', tail='$'):
     "convert a glob pattern into a regexp"