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

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

Issue 10826037: Extensions Docs Server: Fix zipper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed comment 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/memcache_file_system.py
diff --git a/chrome/common/extensions/docs/server2/memcache_file_system.py b/chrome/common/extensions/docs/server2/memcache_file_system.py
index 10ba7eee79183db480e5ac684b00573f2f177f6d..5ac407237cabd5055aeee07a1def863a80b4d147 100644
--- a/chrome/common/extensions/docs/server2/memcache_file_system.py
+++ b/chrome/common/extensions/docs/server2/memcache_file_system.py
@@ -27,7 +27,7 @@ class MemcacheFileSystem(FileSystem):
stat_info = self.StatInfo(version)
return stat_info
- def Read(self, paths):
+ def Read(self, paths, binary=False):
"""Reads a list of files. If a file is in memcache and it is not out of
date, it is returned. Otherwise, the file is retrieved from the file system.
"""
@@ -45,7 +45,7 @@ class MemcacheFileSystem(FileSystem):
uncached.append(path)
continue
result[path] = data
- new_items = self._file_system.Read(uncached).Get()
+ new_items = self._file_system.Read(uncached, binary=binary).Get()
for item in new_items:
version = self.Stat(item).version
value = new_items[item]

Powered by Google App Engine
This is Rietveld 408576698