# HG changeset patch # User Martin Geisler # Date 1276588915 -7200 # Node ID 4b81f82b03e3ef989160f4a4fa5ada429e1e9605 # Parent 32a9744acf1eb46c90f9388edb1dd4cee2398ea6 check-code: reformat long lines diff -r 32a9744acf1e -r 4b81f82b03e3 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'(?< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\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"),