# HG changeset patch # User Matt Mackall # Date 1431701675 18000 # Node ID 68633ff2b6085c6ea8cbd06d9c27016710595fc5 # Parent 14bf7679fb68b66bb319241b2653e6e95d87e0c6 check-code: drop try/except/finally check diff -r 14bf7679fb68 -r 68633ff2b608 contrib/check-code.py --- 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'(? z = next(x) no next(foo) in Python 2.4 and 2.5, use foo.next() instead - ./non-py24.py:18: - > try: - no try/except/finally in Python 2.4 ./non-py24.py:35: > try: no yield inside try/finally in Python 2.4