Index: chrome/common/extensions/docs/server2/file_system.py |
diff --git a/chrome/common/extensions/docs/server2/file_system.py b/chrome/common/extensions/docs/server2/file_system.py |
index 617d43ab2e4becc89d8f3ee46b78d2b1e70d2c95..873cdbffa3d3650fe96d504c2265809ae8c7b071 100644 |
--- a/chrome/common/extensions/docs/server2/file_system.py |
+++ b/chrome/common/extensions/docs/server2/file_system.py |
@@ -21,10 +21,14 @@ class FileSystem(object): |
def __init__(self, version): |
self.version = version |
- def Read(self, paths): |
+ def Read(self, paths, binary=False): |
"""Reads each file in paths and returns a dictionary mapping the path to the |
contents. If a path in paths ends with a '/', it is assumed to be a |
directory, and a list of files in the directory is mapped to the path. |
+ |
+ If binary=False, the contents of each file will be unicode parsed as utf-8, |
+ and failing that as latin-1 (some extension docs use latin-1). If |
+ binary=True then the contents will be a str. |
""" |
raise NotImplementedError() |