From 848c57653ce1b023a324fb9442059228f5372188 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Wed, 3 Jun 2015 20:29:13 -0400 Subject: 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 --- python/servo/bootstrap_commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python/servo/bootstrap_commands.py') 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) -- cgit v1.2.3