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

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

Issue 26538009: Docserver: make file_system a property of Create (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: niggles Created 7 years, 2 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/new_github_file_system.py
diff --git a/chrome/common/extensions/docs/server2/new_github_file_system.py b/chrome/common/extensions/docs/server2/new_github_file_system.py
index 098552aa3182a1a57fd26477e38084f62ce3a482..27c4be376a1af9e2648923c79c8694d12e2b31fc 100644
--- a/chrome/common/extensions/docs/server2/new_github_file_system.py
+++ b/chrome/common/extensions/docs/server2/new_github_file_system.py
@@ -204,8 +204,10 @@ class GithubFileSystem(FileSystem):
return StatInfo(version, child_paths or None)
- def GetDebugString(self):
- return ' %s: %s' % (self._repo_key, self._repo_url)
-
def GetIdentity(self):
return '%s' % StringIdentity(self.__class__.__name__ + self._repo_key)
+
+ def __repr__(self):
+ return '<%s: key=%s, url=%s>' % (type(self).__name__,
+ self._repo_key,
+ self._repo_url)
« no previous file with comments | « chrome/common/extensions/docs/server2/intro_data_source.py ('k') | chrome/common/extensions/docs/server2/patch_servlet.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698