mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
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:
parent
907c051bd1
commit
848c57653c
15 changed files with 113 additions and 68 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue