# HG changeset patch # User Matt Mackall # Date 1292532636 21600 # Node ID 07d08c130892aa0ecac9894d6dbb1027d79b64b3 # Parent 3172da69ff37832cad53f86a625f9fdc3056d0f1 check-code: catch "except as" diff -r 3172da69ff37 -r 07d08c130892 contrib/check-code.py --- a/contrib/check-code.py Thu Dec 16 14:50:27 2010 -0600 +++ b/contrib/check-code.py Thu Dec 16 14:50:36 2010 -0600 @@ -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'(?