Mercurial > public > mercurial-scm > hg-stable
diff mercurial/match.py @ 16687:e34106fa0dc3
cleanup: "raise SomeException()" -> "raise SomeException"
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:00:58 +0200 |
parents | 9a21fc2c7d32 |
children | 977c80123835 |
line wrap: on
line diff
--- a/mercurial/match.py Sat May 12 16:00:57 2012 +0200 +++ b/mercurial/match.py Sat May 12 16:00:58 2012 +0200 @@ -276,7 +276,7 @@ try: pat = '(?:%s)' % '|'.join([_regex(k, p, tail) for (k, p) in pats]) if len(pat) > 20000: - raise OverflowError() + raise OverflowError return pat, re.compile(pat).match except OverflowError: # We're using a Python with a tiny regex engine and we