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

Unified Diff: rietveld.py

Issue 7076016: Add extra_headers to Rietveld. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rietveld.py
diff --git a/rietveld.py b/rietveld.py
index b2284bb17e652c046987c8104daf26b24f5b9e60..0cf6ed12f6de3531e9d56112641732e7f6ca60ff 100644
--- a/rietveld.py
+++ b/rietveld.py
@@ -40,14 +40,15 @@ upload.logging.setLevel(logging.WARNING) # pylint: disable=E1103
class Rietveld(object):
"""Accesses rietveld."""
- def __init__(self, url, email, password):
+ def __init__(self, url, email, password, extra_headers=None):
self.issue = None
self.url = url
if email and password:
get_creds = lambda: (email, password)
self.rpc_server = upload.HttpRpcServer(
self.url,
- get_creds)
+ get_creds,
+ extra_headers=extra_headers)
else:
self.rpc_server = upload.GetRpcServer(url, email)
self._xsrf_token = None
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698