--- a/contrib/check-code.py Tue Jun 15 10:00:07 2010 +0200
+++ b/contrib/check-code.py Tue Jun 15 10:01:55 2010 +0200
@@ -92,14 +92,19 @@
(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'(?<!def)\s+(any|all|format)\(', "any/all/format not available in Python 2.4"),
+ (r'(?<!def)\s+(any|all|format)\(',
+ "any/all/format 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 ="),
- (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\S', "missing whitespace around operator"),
- (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\s', "missing whitespace around operator"),
- (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S', "missing whitespace around operator"),
- (r'[^+=*!<>&| -](\s=|=\s)[^= ]', "wrong whitespace around ="),
+ (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\S',
+ "missing whitespace around operator"),
+ (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\s',
+ "missing whitespace around operator"),
+ (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S',
+ "missing whitespace around operator"),
+ (r'[^+=*!<>&| -](\s=|=\s)[^= ]',
+ "wrong whitespace around ="),
(r'raise Exception', "don't raise generic exceptions"),
(r'ui\.(status|progress|write|note)\([\'\"]x',
"warning: unwrapped ui message"),