Show More
@@ -32,11 +32,10 b' for line in sys.stdin:' | |||||
32 | (r"imported but unused", None), |
|
32 | (r"imported but unused", None), | |
33 | (r"local variable '.*' is assigned to but never used", None), |
|
33 | (r"local variable '.*' is assigned to but never used", None), | |
34 | (r"unable to detect undefined names", None), |
|
34 | (r"unable to detect undefined names", None), | |
|
35 | (r"undefined name '.*'", | |||
|
36 | r"undefined name 'memoryview'") | |||
35 | ] |
|
37 | ] | |
36 | if sys.version_info >= (2, 7): |
|
38 | ||
37 | pats.append((r"undefined name '.*'", None)) |
|
|||
38 | else: |
|
|||
39 | pats.append((r"undefined name '.*'", r"undefined name 'memoryview'")) |
|
|||
40 | for msgtype, (pat, excl) in enumerate(pats): |
|
39 | for msgtype, (pat, excl) in enumerate(pats): | |
41 | if re.search(pat, line) and (not excl or not re.search(excl, line)): |
|
40 | if re.search(pat, line) and (not excl or not re.search(excl, line)): | |
42 | break # pattern matches |
|
41 | break # pattern matches |
@@ -17,6 +17,6 b' run pyflakes on all tracked files ending' | |||||
17 | tests/hghave.py:*: 'pygments' imported but unused (glob) |
|
17 | tests/hghave.py:*: 'pygments' imported but unused (glob) | |
18 | tests/hghave.py:*: 'ssl' imported but unused (glob) |
|
18 | tests/hghave.py:*: 'ssl' imported but unused (glob) | |
19 | contrib/win32/hgwebdir_wsgi.py:93: 'from isapi.install import *' used; unable to detect undefined names (glob) |
|
19 | contrib/win32/hgwebdir_wsgi.py:93: 'from isapi.install import *' used; unable to detect undefined names (glob) | |
20 |
tests/filterpyflakes.py:5 |
|
20 | tests/filterpyflakes.py:58: undefined name 'undefinedname' | |
21 |
|
21 | |||
22 | #endif |
|
22 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now