Show More
@@ -243,8 +243,8 b' pypats = [' | |||||
243 | # (r'^\s*print\s+', "avoid using print in core and extensions"), |
|
243 | # (r'^\s*print\s+', "avoid using print in core and extensions"), | |
244 | (r'[\x80-\xff]', "non-ASCII character literal"), |
|
244 | (r'[\x80-\xff]', "non-ASCII character literal"), | |
245 | (r'("\')\.format\(', "str.format() not available in Python 2.4"), |
|
245 | (r'("\')\.format\(', "str.format() not available in Python 2.4"), | |
246 |
(r'(?<!def)\s+( |
|
246 | (r'(?<!def)\s+(format)\(', | |
247 |
" |
|
247 | "format not available in Python 2.4", 'no-py24'), | |
248 | (r'if\s.*\selse', "if ... else form not available in Python 2.4"), |
|
248 | (r'if\s.*\selse', "if ... else form not available in Python 2.4"), | |
249 | (r'^\s*(%s)\s\s' % '|'.join(keyword.kwlist), |
|
249 | (r'^\s*(%s)\s\s' % '|'.join(keyword.kwlist), | |
250 | "gratuitous whitespace after Python keyword"), |
|
250 | "gratuitous whitespace after Python keyword"), |
@@ -20,7 +20,6 b'' | |||||
20 | $ cat > non-py24.py <<EOF |
|
20 | $ cat > non-py24.py <<EOF | |
21 | > # Using builtins that does not exist in Python 2.4 |
|
21 | > # Using builtins that does not exist in Python 2.4 | |
22 | > if True: |
|
22 | > if True: | |
23 | > x = all() |
|
|||
24 | > y = format(x) |
|
23 | > y = format(x) | |
25 | > |
|
24 | > | |
26 | > # try/except/finally block does not exist in Python 2.4 |
|
25 | > # try/except/finally block does not exist in Python 2.4 | |
@@ -82,15 +81,12 b'' | |||||
82 | > '"""', 42+1, """and |
|
81 | > '"""', 42+1, """and | |
83 | missing whitespace in expression |
|
82 | missing whitespace in expression | |
84 | ./non-py24.py:3: |
|
83 | ./non-py24.py:3: | |
85 | > x = all() |
|
|||
86 | all/format not available in Python 2.4 |
|
|||
87 | ./non-py24.py:4: |
|
|||
88 | > y = format(x) |
|
84 | > y = format(x) | |
89 |
|
|
85 | format not available in Python 2.4 | |
90 |
./non-py24.py:2 |
|
86 | ./non-py24.py:23: | |
91 | > try: |
|
87 | > try: | |
92 | no yield inside try/finally in Python 2.4 |
|
88 | no yield inside try/finally in Python 2.4 | |
93 |
./non-py24.py:2 |
|
89 | ./non-py24.py:28: | |
94 | > try: |
|
90 | > try: | |
95 | no yield inside try/finally in Python 2.4 |
|
91 | no yield inside try/finally in Python 2.4 | |
96 | ./classstyle.py:4: |
|
92 | ./classstyle.py:4: |
General Comments 0
You need to be logged in to leave comments.
Login now