summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/server2/file_system.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/docs/server2/file_system.py')
-rw-r--r--chrome/common/extensions/docs/server2/file_system.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/extensions/docs/server2/file_system.py b/chrome/common/extensions/docs/server2/file_system.py
index ab2248f..72bb599 100644
--- a/chrome/common/extensions/docs/server2/file_system.py
+++ b/chrome/common/extensions/docs/server2/file_system.py
@@ -16,7 +16,8 @@ class StatInfo(object):
self.child_versions = child_versions
def __eq__(self, other):
- return (self.version == other.version and
+ return (isinstance(other, StatInfo) and
+ self.version == other.version and
self.child_versions == other.child_versions)
def __ne__(self, other):
@@ -41,7 +42,6 @@ def ToUnicode(data):
class FileSystem(object):
'''A FileSystem interface that can read files and directories.
'''
-
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