aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/bootstrap_commands.py
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-06-03 20:29:13 -0400
committerCorey Farwell <coreyf@rwell.org>2015-06-04 11:17:34 -0400
commit848c57653ce1b023a324fb9442059228f5372188 (patch)
treeb7ca6475822fcc2220bfb3d5f76b8d6f5775b957 /python/servo/bootstrap_commands.py
parent907c051bd1d59621449a399ccf6845b617bdff9d (diff)
downloadservo-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.py4
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)