Mercurial > public > mercurial-scm > hg
diff contrib/perf.py @ 16689:f366d4c2ff34
cleanup: replace naked excepts with except Exception: ...
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:02:46 +0200 |
parents | 525fdb738975 |
children | 1dc08dc63c09 |
line wrap: on
line diff
--- a/contrib/perf.py Sat May 12 16:02:45 2012 +0200 +++ b/contrib/perf.py Sat May 12 16:02:46 2012 +0200 @@ -33,11 +33,11 @@ try: m = scmutil.match(repo[None], pats, {}) timer(lambda: len(list(repo.dirstate.walk(m, [], True, False)))) - except: + except Exception: try: m = scmutil.match(repo[None], pats, {}) timer(lambda: len([b for a, b, c in repo.dirstate.statwalk([], m)])) - except: + except Exception: timer(lambda: len(list(cmdutil.walk(repo, pats, {})))) def perfstatus(ui, repo, *pats):