summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Wall <richard@largo>2011-06-18 15:17:17 +0100
committerRichard Wall <richard@largo>2011-06-18 15:17:17 +0100
commite4a7e36fb85be64424ff1fb876d073baafc354c8 (patch)
tree6749888f25e6d07ffc44c52067333f9c6551f1de
parent264ca302a92cf3f8c21e1b8d899e3082451ebaec (diff)
write in chunks
-rw-r--r--docs/examples/index.html2
-rw-r--r--jarmonbuild/commands.py4
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 @@
<link rel="stylesheet" type="text/css" href="assets/css/tabs-no-images.css" />
<link rel="stylesheet" type="text/css" href="assets/css/jquerytools.dateinput.skin1.css" />
- <script type="text/javascript" src="https://raw.github.com/mochi/mochikit/master/MochiKit/Async.js"></script>
+ <script type="text/javascript" src="https://raw.github.com/mochi/mochikit/master/MochiKit/Base.js"></script>
<script type="text/javascript" src="https://raw.github.com/mochi/mochikit/master/MochiKit/Async.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script type="text/javascript" src="http://flot.googlecode.com/svn/trunk/excanvas.js"></script>
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