Show More
@@ -343,16 +343,6 commonpypats = [ | |||
|
343 | 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 | 346 | r'\b(%s)\(' |
|
357 | 347 | % '|'.join(k for k in keyword.kwlist if k not in ('print', 'exec')), |
|
358 | 348 | "Python keyword is not a function", |
@@ -51,12 +51,6 | |||
|
51 | 51 | ./quote.py:5: |
|
52 | 52 | > '"""', 42+1, """and |
|
53 | 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 | 54 | [1] |
|
61 | 55 | $ cat > python3-compat.py << NO_CHECK_EOF |
|
62 | 56 | > foo <> bar |
General Comments 0
You need to be logged in to leave comments.
Login now