contrib/check-code.py
changeset 28219 97fe88806f6f
parent 28053 34a2944aac9b
child 28399 2af0156cebaa
--- a/contrib/check-code.py	Wed Feb 24 15:55:44 2016 -0600
+++ b/contrib/check-code.py	Wed Feb 24 18:42:14 2016 +0000
@@ -245,9 +245,11 @@
      "don't use camelcase in identifiers"),
     (r'^\s*(if|while|def|class|except|try)\s[^[\n]*:\s*[^\\n]#\s]+',
      "linebreak after :"),
-    (r'class\s[^( \n]+:', "old-style class, use class foo(object)"),
+    (r'class\s[^( \n]+:', "old-style class, use class foo(object)",
+     r'#.*old-style'),
     (r'class\s[^( \n]+\(\):',
-     "class foo() creates old style object, use class foo(object)"),
+     "class foo() creates old style object, use class foo(object)",
+     r'#.*old-style'),
     (r'\b(%s)\(' % '|'.join(k for k in keyword.kwlist
                             if k not in ('print', 'exec')),
      "Python keyword is not a function"),