# HG changeset patch # User Matt Mackall # Date 2010-01-29 04:44:54 # Node ID 61c93743fae0b28328db494115587648808b0f3d # Parent 7cc60de189d77fcad06a4061b80cc36657e17662 check-code: del isn't a function diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -71,6 +71,7 @@ pypats = [ (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"),