Show More
@@ -217,9 +217,6 b' pypats = [' | |||||
217 | (r'(\w|\)),\w', "missing whitespace after ,"), |
|
217 | (r'(\w|\)),\w', "missing whitespace after ,"), | |
218 | (r'(\w|\))[+/*\-<>]\w', "missing whitespace in expression"), |
|
218 | (r'(\w|\))[+/*\-<>]\w', "missing whitespace in expression"), | |
219 | (r'^\s+(\w|\.)+=\w[^,()\n]*$', "missing whitespace in assignment"), |
|
219 | (r'^\s+(\w|\.)+=\w[^,()\n]*$', "missing whitespace in assignment"), | |
220 | (r'(\s+)try:\n((?:\n|\1\s.*\n)*?)\1\s*yield\b.*?' |
|
|||
221 | r'((?:\n|\1\s.*\n)+?)\1finally:', |
|
|||
222 | 'no yield inside try/finally in Python 2.4'), |
|
|||
223 | (r'.{81}', "line too long"), |
|
220 | (r'.{81}', "line too long"), | |
224 | (r' x+[xo][\'"]\n\s+[\'"]x', 'string join across lines with no space'), |
|
221 | (r' x+[xo][\'"]\n\s+[\'"]x', 'string join across lines with no space'), | |
225 | (r'[^\n]\Z', "no trailing newline"), |
|
222 | (r'[^\n]\Z', "no trailing newline"), |
@@ -39,18 +39,6 b'' | |||||
39 | > finally: |
|
39 | > finally: | |
40 | > pass |
|
40 | > pass | |
41 | > |
|
41 | > | |
42 | > # yield inside a try/finally block is not allowed in Python 2.4 |
|
|||
43 | > try: |
|
|||
44 | > pass |
|
|||
45 | > yield 1 |
|
|||
46 | > finally: |
|
|||
47 | > pass |
|
|||
48 | > try: |
|
|||
49 | > yield |
|
|||
50 | > pass |
|
|||
51 | > finally: |
|
|||
52 | > pass |
|
|||
53 | > |
|
|||
54 | > EOF |
|
42 | > EOF | |
55 | $ cat > classstyle.py <<EOF |
|
43 | $ cat > classstyle.py <<EOF | |
56 | > class newstyle_class(object): |
|
44 | > class newstyle_class(object): | |
@@ -83,12 +71,6 b'' | |||||
83 | ./non-py24.py:3: |
|
71 | ./non-py24.py:3: | |
84 | > y = format(x) |
|
72 | > y = format(x) | |
85 | format not available in Python 2.4 |
|
73 | format not available in Python 2.4 | |
86 | ./non-py24.py:23: |
|
|||
87 | > try: |
|
|||
88 | no yield inside try/finally in Python 2.4 |
|
|||
89 | ./non-py24.py:28: |
|
|||
90 | > try: |
|
|||
91 | no yield inside try/finally in Python 2.4 |
|
|||
92 | ./classstyle.py:4: |
|
74 | ./classstyle.py:4: | |
93 | > class oldstyle_class: |
|
75 | > class oldstyle_class: | |
94 | old-style class, use class foo(object) |
|
76 | old-style class, use class foo(object) |
General Comments 0
You need to be logged in to leave comments.
Login now