contrib/check-code.py
branchstable
changeset 14763 b071cd58af50
parent 14709 6c7283faa967
child 14831 0407b7613e99
--- a/contrib/check-code.py	Wed Jun 29 00:19:27 2011 +0200
+++ b/contrib/check-code.py	Wed Jun 29 13:45:51 2011 +0200
@@ -128,7 +128,9 @@
 #    (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'class\s[^(]:', "old-style class, use class foo(object)"),
+    (r'class\s[^( ]+:', "old-style class, use class foo(object)"),
+    (r'class\s[^( ]+\(\):',
+     "class foo() not available in Python 2.4, use class foo(object)"),
     (r'\b(%s)\(' % '|'.join(keyword.kwlist),
      "Python keyword is not a function"),
     (r',]', "unneeded trailing ',' in list"),