Mercurial > public > mercurial-scm > hg
diff contrib/check-code.py @ 25077:68633ff2b608
check-code: drop try/except/finally check
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 15 May 2015 09:54:35 -0500 |
parents | 33298a8b472f |
children | 6d3079e9b53f |
line wrap: on
line diff
--- a/contrib/check-code.py Thu May 14 09:04:48 2015 +0200 +++ b/contrib/check-code.py Fri May 15 09:54:35 2015 -0500 @@ -217,9 +217,6 @@ (r'(\w|\)),\w', "missing whitespace after ,"), (r'(\w|\))[+/*\-<>]\w', "missing whitespace in expression"), (r'^\s+(\w|\.)+=\w[^,()\n]*$', "missing whitespace in assignment"), - (r'(\s+)try:\n((?:\n|\1\s.*\n)+?)(\1except.*?:\n' - r'((?:\n|\1\s.*\n)+?))+\1finally:', - 'no try/except/finally in Python 2.4'), (r'(?<!def)(\s+|^|\()next\(.+\)', 'no next(foo) in Python 2.4 and 2.5, use foo.next() instead'), (r'(\s+)try:\n((?:\n|\1\s.*\n)*?)\1\s*yield\b.*?'