# HG changeset patch # User Pierre-Yves David # Date 1431542978 25200 # Node ID 33298a8b472f7e8f3aabcc14e189a7c99d9bcbe6 # Parent e0ce8d8630f3a338119b0173ba48965ebe75a022 check-code: allow with statements We dropped python 2.4 compatibility. diff -r e0ce8d8630f3 -r 33298a8b472f contrib/check-code.py --- a/contrib/check-code.py Wed May 13 11:41:17 2015 -0700 +++ b/contrib/check-code.py Wed May 13 11:49:38 2015 -0700 @@ -248,7 +248,6 @@ # (r'^\s*print\s+', "avoid using print in core and extensions"), (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'\.isdisjoint\(', "set.isdisjoint not available in Python 2.4"), (r'^\s*os\.path\.relpath', "relpath not available in Python 2.4"), (r'(?