aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/bootstrap_commands.py
diff options
context:
space:
mode:
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)