File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import ast
2
+ import sys
2
3
import mccabe
3
4
from .utils import collect_sources
4
5
@@ -28,4 +29,4 @@ def main():
28
29
29
30
30
31
if __name__ == "__main__" :
31
- main ()
32
+ main ()
Original file line number Diff line number Diff line change
1
+ import sys
1
2
import subprocess
2
3
3
4
from .utils import collect_sources
@@ -15,7 +16,7 @@ def ignore(p):
15
16
16
17
def run_pyflakes ():
17
18
cmd = ["pyflakes" ]
18
- cmd .extend (collect_sources (ignore_func = ignore ))
19
+ cmd .extend (collect_sources (ignore_func = ignore ))
19
20
return subprocess .call (cmd )
20
21
21
22
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ def collect_sources(ignore_func):
6
6
for py_path in top_path .walkfiles ("*.py" ):
7
7
py_path = py_path .normpath () # get rid of the leading '.'
8
8
if not ignore_func (py_path ):
9
- yield py_path
9
+ yield py_path
You can’t perform that action at this time.
0 commit comments