From e4a7e36fb85be64424ff1fb876d073baafc354c8 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Sat, 18 Jun 2011 15:17:17 +0100 Subject: write in chunks --- docs/examples/index.html | 2 +- jarmonbuild/commands.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/examples/index.html b/docs/examples/index.html index 44b10af..9f8f1a8 100644 --- a/docs/examples/index.html +++ b/docs/examples/index.html @@ -11,7 +11,7 @@ - + diff --git a/jarmonbuild/commands.py b/jarmonbuild/commands.py index 2fb2a00..d8d11cd 100644 --- a/jarmonbuild/commands.py +++ b/jarmonbuild/commands.py @@ -301,7 +301,9 @@ class BuildJavascriptDependenciesCommand(BuildCommand): with open(os.path.join(build_dir, 'dependencies.js'), 'w') as f: for param in params: f.write('// %s: %s\n' % param) - f.write(response.read()) + + while not response.isclosed(): + f.write(response.read(1024 * 10)) conn.close -- cgit v1.2.3