check-code: reformat long lines
authorMartin Geisler <mg@aragost.com>
Tue, 15 Jun 2010 10:01:55 +0200
changeset 11345 4b81f82b03e3
parent 11344 32a9744acf1e
child 11346 e740f36cfb4b
check-code: reformat long lines
contrib/check-code.py
--- 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"),