# HG changeset patch # User Matt Mackall # Date 1264404214 21600 # Node ID cc0340ef47f74fa96aec9dcb00f1a90a9fb903f0 # Parent 61f4ea277f237bc966149398618f53c9479f69e4 check-code: check thyself diff -r 61f4ea277f23 -r cc0340ef47f7 contrib/check-code.py --- a/contrib/check-code.py Fri Jan 29 01:04:38 2010 +0100 +++ b/contrib/check-code.py Mon Jan 25 01:23:34 2010 -0600 @@ -68,7 +68,8 @@ (r'[^\n]\Z', "no trailing newline"), # (r'^\s+[^_ ][^_. ]+_[^_]+\s*=', "don't use underbars in identifiers"), # (r'\w*[a-z][A-Z]\w*\s*=', "don't use camelcase in identifiers"), - (r'^\s*(if|while|def|class|except|try)\s[^[]*:\s*[^\]#\s]+', "linebreak after :"), + (r'^\s*(if|while|def|class|except|try)\s[^[]*:\s*[^\]#\s]+', + "linebreak after :"), (r'class\s[^(]:', "old-style class, use class foo(object)"), (r'^\s+except\(', "except isn't a function"), # (r'class\s[A-Z][^\(]*\((?!Exception)',