diff --git a/contrib/check-code.py b/contrib/check-code.py index 6d3079e9b53f17cfc07b12191cea74663189939e_Y29udHJpYi9jaGVjay1jb2RlLnB5..317333e0793c2efa334adbefc13ab010a5b1622c_Y29udHJpYi9jaGVjay1jb2RlLnB5 100755 --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -234,7 +234,7 @@ "linebreak after :"), (r'class\s[^( \n]+:', "old-style class, use class foo(object)"), (r'class\s[^( \n]+\(\):', - "class foo() not available in Python 2.4, use class foo(object)"), + "class foo() creates old style object, use class foo(object)"), (r'\b(%s)\(' % '|'.join(k for k in keyword.kwlist if k not in ('print', 'exec')), "Python keyword is not a function"), diff --git a/tests/test-check-code.t b/tests/test-check-code.t index 6d3079e9b53f17cfc07b12191cea74663189939e_dGVzdHMvdGVzdC1jaGVjay1jb2RlLnQ=..317333e0793c2efa334adbefc13ab010a5b1622c_dGVzdHMvdGVzdC1jaGVjay1jb2RlLnQ= 100644 --- a/tests/test-check-code.t +++ b/tests/test-check-code.t @@ -115,7 +115,7 @@ old-style class, use class foo(object) ./classstyle.py:7: > class empty(): - class foo() not available in Python 2.4, use class foo(object) + class foo() creates old style object, use class foo(object) [1] $ cat > python3-compat.py << EOF > foo <> bar