# HG changeset patch # User Martin Geisler # Date 2010-06-15 07:55:59 # Node ID f325db39c8b946502b62fc9cbcdad3c19dfa0d82 # Parent aecabad8dd7a7a841d80e7080f92feead3705295 check-code: catch format(), introduced in Python 2.6 diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -92,7 +92,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'(? non-py24.py < if any(): - any/all not available in Python 2.4 + any/all/format not available in Python 2.4 ./non-py24.py:3: > x = all() - any/all not available in Python 2.4 + any/all/format not available in Python 2.4 +./non-py24.py:4: + > y = format(x) + any/all/format not available in Python 2.4