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

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

Issue 10804036: Extensions Docs Server: Internationalized samples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move logic into file_system 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/local_file_system.py
diff --git a/chrome/common/extensions/docs/server2/local_file_system.py b/chrome/common/extensions/docs/server2/local_file_system.py
index fae501cd0ea4972d9f6cdd35c7c8383fa991def7..44efcc07026bbda3d5c85e8b47352a95fe8f650d 100644
--- a/chrome/common/extensions/docs/server2/local_file_system.py
+++ b/chrome/common/extensions/docs/server2/local_file_system.py
@@ -4,10 +4,10 @@
import os
-from file_system import FileSystem
+import file_system
from future import Future
-class LocalFileSystem(FileSystem):
+class LocalFileSystem(file_system.FileSystem):
"""FileSystem implementation which fetches resources from the local
filesystem.
"""
@@ -19,7 +19,7 @@ class LocalFileSystem(FileSystem):
def _ReadFile(self, filename):
with open(os.path.join(self._base_path, filename), 'r') as f:
- return f.read()
+ return file_system._ProcessFileData(f.read(), filename)
def _ListDir(self, dir_name):
all_files = []

Powered by Google App Engine
This is Rietveld 408576698