Mercurial > public > mercurial-scm > hg-stable
diff mercurial/match.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | 25e572394f5c |
children | b046b90c4ae5 |
line wrap: on
line diff
--- a/mercurial/match.py Mon Jan 25 00:05:22 2010 -0600 +++ b/mercurial/match.py Mon Jan 25 00:05:27 2010 -0600 @@ -125,10 +125,11 @@ res = '' group = 0 escape = re.escape - def peek(): return i < n and pat[i] + def peek(): + return i < n and pat[i] while i < n: c = pat[i] - i = i+1 + i += 1 if c not in '*?[{},\\': res += escape(c) elif c == '*':