changeset 10702:1437542a9fd7

check-code: add check for any/all
author Matt Mackall <mpm@selenic.com>
date Fri, 12 Mar 2010 16:16:47 -0600
parents b2b71c304de0
children 1ee60e82333c
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Mon Mar 15 18:40:00 2010 +0100
+++ b/contrib/check-code.py	Fri Mar 12 16:16:47 2010 -0600
@@ -83,6 +83,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*(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 ="),