# HG changeset patch # User Martin Geisler # Date 1276588559 -7200 # Node ID f325db39c8b946502b62fc9cbcdad3c19dfa0d82 # Parent aecabad8dd7a7a841d80e7080f92feead3705295 check-code: catch format(), introduced in Python 2.6 diff -r aecabad8dd7a -r f325db39c8b9 contrib/check-code.py --- a/contrib/check-code.py Tue Jun 15 09:53:50 2010 +0200 +++ b/contrib/check-code.py Tue Jun 15 09:55:59 2010 +0200 @@ -92,7 +92,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'(? 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