# HG changeset patch # User Matt Mackall # Date 2010-12-16 20:50:36 # Node ID 07d08c130892aa0ecac9894d6dbb1027d79b64b3 # Parent 3172da69ff37832cad53f86a625f9fdc3056d0f1 check-code: catch "except as" diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -129,6 +129,7 @@ pypats = [ (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'(?