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

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

Issue 151883009: Docserver: Make MockFileSystem not iterate over the entire file system as part (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yoz and then some Created 6 years, 10 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/github_file_system.py
diff --git a/chrome/common/extensions/docs/server2/github_file_system.py b/chrome/common/extensions/docs/server2/github_file_system.py
index 6185182ea0e55598c485903ad064a75817a5571a..572d1d881d6c794799fe949c4d9cfaa363c21c22 100644
--- a/chrome/common/extensions/docs/server2/github_file_system.py
+++ b/chrome/common/extensions/docs/server2/github_file_system.py
@@ -129,7 +129,7 @@ class GithubFileSystem(FileSystem):
if zip_file is None:
logging.error('Bad github zip file.')
return ''
- prefix = zip_file.namelist()[0][:-1]
+ prefix = zip_file.namelist()[0]
return zip_file.read(prefix + path)
def _ListDir(self, path):

Powered by Google App Engine
This is Rietveld 408576698