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

Unified Diff: appengine/findit_mock/libs/gitiles/git.py

Issue 2447253002: [Findit & Predator] Code reorg of Findit. (Closed)
Patch Set: Clean up. Created 4 years, 1 month 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: appengine/findit_mock/libs/gitiles/git.py
diff --git a/appengine/findit_mock/libs/gitiles/git.py b/appengine/findit_mock/libs/gitiles/git.py
new file mode 100644
index 0000000000000000000000000000000000000000..ffdf4c4a3637ced4f7d00f1ef8bddcc6dc3851cf
--- /dev/null
+++ b/appengine/findit_mock/libs/gitiles/git.py
@@ -0,0 +1,11 @@
+from libs.cache import cache
+
+class Git(object):
+ def __init__(self, http_client):
+ self.http_client = http_client
+
+ @cache.Cached()
+ def GetChangeLog(self):
+ status_code, content = self.http_client.Get('url')
+ assert status_code == 200
+ return content

Powered by Google App Engine
This is Rietveld 408576698