# HG changeset patch # User Matt Mackall # Date 2010-01-25 07:23:34 # Node ID cc0340ef47f74fa96aec9dcb00f1a90a9fb903f0 # Parent 61f4ea277f237bc966149398618f53c9479f69e4 check-code: check thyself diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -68,7 +68,8 @@ pypats = [ (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)',