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

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

Issue 14247024: Devserver: allow SubversionFileSystem to be pinned to a specific rev on construction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 7 years, 7 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/file_system.py
diff --git a/chrome/common/extensions/docs/server2/file_system.py b/chrome/common/extensions/docs/server2/file_system.py
index ab2248f504b41d5acd52d9b0878e51cd6563966c..72bb599117792d2be67da3e802ecb9d46b6f2abd 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
« no previous file with comments | « chrome/common/extensions/docs/server2/fake_url_fetcher.py ('k') | chrome/common/extensions/docs/server2/instance_servlet.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698