summaryrefslogtreecommitdiff
path: root/jarmonbuild
diff options
context:
space:
mode:
authorRichard Wall <richard@largo>2011-02-16 23:00:29 +0000
committerRichard Wall <richard@largo>2011-02-16 23:00:29 +0000
commit2e0922788f4f3d34e8fe56fcdf140e59299c730c (patch)
tree299a0c681f63653f0fb5a8de582f57847192530a /jarmonbuild
parent77de7a5f611e78b199076d19756666e597f63137 (diff)
Rename inline functions to satisfy pyflakes.
Diffstat (limited to 'jarmonbuild')
-rw-r--r--jarmonbuild/commands.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/jarmonbuild/commands.py b/jarmonbuild/commands.py
index 13958fb..0be6cf0 100644
--- a/jarmonbuild/commands.py
+++ b/jarmonbuild/commands.py
@@ -90,12 +90,14 @@ class BuildApidocsCommand(BuildCommand):
if os.path.exists(yuizip_path):
self.log.debug('Using cached YUI doc')
- def producer():
+ def producer_local():
yield open(yuizip_path).read()
+
+ producer = producer_local
else:
self.log.debug('Downloading YUI Doc')
- def producer():
+ def producer_remote():
with open(yuizip_path, 'w') as yuizip:
download = urlopen(YUIDOC_URL)
while True:
@@ -106,6 +108,8 @@ class BuildApidocsCommand(BuildCommand):
yuizip.write(bytes)
yield bytes
+ producer = producer_remote
+
checksum = hashlib.md5()
for bytes in producer():
checksum.update(bytes)