# HG changeset patch # User Matt Mackall # Date 2010-03-12 22:16:47 # Node ID 1437542a9fd726b210ceff849bf84bc9c6e917e3 # Parent b2b71c304de0d79da45485c7469bd04072ca4b0e check-code: add check for any/all diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -83,6 +83,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*(any|all)\(', "any/all not available in Python 2.4"), (r'if\s.*\selse', "if ... else form not available in Python 2.4"), (r'([\(\[]\s\S)|(\S\s[\)\]])', "gratuitous whitespace in () or []"), # (r'\s\s=', "gratuitous whitespace before ="),