diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-06-03 20:29:13 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-06-04 11:17:34 -0400 |
commit | 848c57653ce1b023a324fb9442059228f5372188 (patch) | |
tree | b7ca6475822fcc2220bfb3d5f76b8d6f5775b957 /python/servo/bootstrap_commands.py | |
parent | 907c051bd1d59621449a399ccf6845b617bdff9d (diff) | |
download | servo-848c57653ce1b023a324fb9442059228f5372188.tar.gz servo-848c57653ce1b023a324fb9442059228f5372188.zip |
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
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r-- | python/servo/bootstrap_commands.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index ad211b97eff..5cf2f39c927 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -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) |