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 bb2bd9b76957ce828d7a2a0690e491bbac24b627..e21ff1e6a32f545c3bd2bada1a5690136d64832d 100644 |
--- a/chrome/common/extensions/docs/server2/file_system.py |
+++ b/chrome/common/extensions/docs/server2/file_system.py |
@@ -171,6 +171,13 @@ class FileSystem(object): |
for walkinfo in walk(root): |
yield walkinfo |
+ def __eq__(self, other): |
+ return (isinstance(other, FileSystem) and |
+ self.GetIdentity() == other.GetIdentity()) |
+ |
+ def __ne__(self, other): |
+ return not (self == other) |
+ |
def __repr__(self): |
return '<%s>' % type(self).__name__ |