Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5442)

Unified Diff: chrome/common/extensions/docs/server2/example_zipper.py

Issue 10826037: Extensions Docs Server: Fix zipper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/example_zipper.py
diff --git a/chrome/common/extensions/docs/server2/example_zipper.py b/chrome/common/extensions/docs/server2/example_zipper.py
index a21867cfd3ecfab9b3442798f2441aaaa9635fe9..da49f5e9261744253322ab4237a0872796e4fc10 100644
--- a/chrome/common/extensions/docs/server2/example_zipper.py
+++ b/chrome/common/extensions/docs/server2/example_zipper.py
@@ -24,8 +24,8 @@ class ExampleZipper(object):
zip_bytes = BytesIO()
zip_file = ZipFile(zip_bytes, mode='w')
try:
- for filename, contents in self._file_system.Read(files).Get().iteritems():
- zip_file.writestr(filename[len(prefix):].strip('/'), contents)
+ for name, file_ in self._file_system.Read(files, False).Get().iteritems():
not at google - send to devlin 2012/07/27 04:54:36 name to optional arguments plz Read(files, binary
cduvall 2012/07/27 18:12:28 Done.
+ zip_file.writestr(name[len(prefix):].strip('/'), file_)
finally:
zip_file.close()
return zip_bytes.getvalue()

Powered by Google App Engine
This is Rietveld 408576698