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

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

Issue 216703003: Docs: Memoize the FeaturesBundles that are created by AvailabilityFinder to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 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__

Powered by Google App Engine
This is Rietveld 408576698