Mercurial > hg
changeset 6595:99a92acafdb9
remove default arg from patkind
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | fca1688f0459 |
children | 7fe4610cf920 |
files | mercurial/util.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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"