Show More
@@ -343,16 +343,6 b' commonpypats = [' | |||||
343 | "linebreak after :", |
|
343 | "linebreak after :", | |
344 | ), |
|
344 | ), | |
345 | ( |
|
345 | ( | |
346 | r'class\s[^( \n]+:', |
|
|||
347 | "old-style class, use class foo(object)", |
|
|||
348 | r'#.*old-style', |
|
|||
349 | ), |
|
|||
350 | ( |
|
|||
351 | r'class\s[^( \n]+\(\):', |
|
|||
352 | "class foo() creates old style object, use class foo(object)", |
|
|||
353 | r'#.*old-style', |
|
|||
354 | ), |
|
|||
355 | ( |
|
|||
356 | r'\b(%s)\(' |
|
346 | r'\b(%s)\(' | |
357 | % '|'.join(k for k in keyword.kwlist if k not in ('print', 'exec')), |
|
347 | % '|'.join(k for k in keyword.kwlist if k not in ('print', 'exec')), | |
358 | "Python keyword is not a function", |
|
348 | "Python keyword is not a function", |
@@ -51,12 +51,6 b'' | |||||
51 | ./quote.py:5: |
|
51 | ./quote.py:5: | |
52 | > '"""', 42+1, """and |
|
52 | > '"""', 42+1, """and | |
53 | missing whitespace in expression |
|
53 | missing whitespace in expression | |
54 | ./classstyle.py:4: |
|
|||
55 | > class oldstyle_class: |
|
|||
56 | old-style class, use class foo(object) |
|
|||
57 | ./classstyle.py:7: |
|
|||
58 | > class empty(): |
|
|||
59 | class foo() creates old style object, use class foo(object) |
|
|||
60 | [1] |
|
54 | [1] | |
61 | $ cat > python3-compat.py << NO_CHECK_EOF |
|
55 | $ cat > python3-compat.py << NO_CHECK_EOF | |
62 | > foo <> bar |
|
56 | > foo <> bar |
General Comments 0
You need to be logged in to leave comments.
Login now