author | Matt Mackall <mpm@selenic.com> |
Thu, 28 Jan 2010 22:44:54 -0600 | |
changeset 10291 | 61c93743fae0 |
parent 10290 | 7cc60de189d7 |
child 10292 | ea7a14ca118a |
--- a/contrib/check-code.py Thu Jan 28 22:44:45 2010 -0600 +++ b/contrib/check-code.py Thu Jan 28 22:44:54 2010 -0600 @@ -71,6 +71,7 @@ (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+del\(', "del isn't a function"), (r'^\s+except\(', "except isn't a function"), # (r'class\s[A-Z][^\(]*\((?!Exception)', # "don't capitalize non-exception classes"),