Add flake8 to the tidy process for Python files

Fixes #6236

Also included in this commit are the changes need to make flake8 pass
for the existing python file
This commit is contained in:
Corey Farwell 2015-06-03 20:29:13 -04:00
parent 907c051bd1
commit 848c57653c
15 changed files with 113 additions and 68 deletions

View file

@ -40,7 +40,8 @@ def download(desc, src, dst):
with open(dst, 'wb') as fd:
while True:
chunk = resp.read(chunk_size)
if not chunk: break
if not chunk:
break
recved += len(chunk)
if not dumb:
pct = recved * 100.0 / fsize
@ -61,6 +62,7 @@ def download(desc, src, dst):
sys.exit(1)
def extract(src, dst, movedir=None):
tarfile.open(src).extractall(dst)