Mercurial > hg > mercurial-crew
changeset 13160:07d08c130892
check-code: catch "except as"
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 16 Dec 2010 14:50:36 -0600 |
parents | 3172da69ff37 |
children | 11eb53464e68 |
files | contrib/check-code.py mercurial/subrepo.py |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -129,6 +129,7 @@ (r'[\x80-\xff]', "non-ASCII character literal"), (r'("\')\.format\(', "str.format() not available in Python 2.4"), (r'^\s*with\s+', "with not available in Python 2.4"), + (r'^\s*except.* as .*:', "except as not available in Python 2.4"), (r'(?<!def)\s+(any|all|format)\(', "any/all/format not available in Python 2.4"), (r'(?<!def)\s+(callable)\(',