depot_tools: Remove depot-tools-auth
Users must use luci-auth now.
Bug: 1001756
Change-Id: I04cab6bdbfbd958f386a4cab761dfe4d34073afc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1849810
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Anthony Polito <apolito@google.com>
diff --git a/git_cl.py b/git_cl.py
index 0b1d915..ff6d5b3 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -465,11 +465,7 @@
if not requests:
return
- codereview_url = changelist.GetCodereviewServer()
- codereview_host = urlparse.urlparse(codereview_url).hostname
-
- authenticator = auth.get_authenticator_for_host(codereview_host, auth_config)
- http = authenticator.authorize(httplib2.Http())
+ http = auth.get_authenticator(auth_config).authorize(httplib2.Http())
http.force_exception_to_status_code = True
batch_request = {'requests': requests}
@@ -544,10 +540,7 @@
'fields': ','.join('builds.*.' + field for field in fields),
}
- codereview_url = changelist.GetCodereviewServer()
- codereview_host = urlparse.urlparse(codereview_url).hostname
-
- authenticator = auth.get_authenticator_for_host(codereview_host, auth_config)
+ authenticator = auth.get_authenticator(auth_config)
if authenticator.has_cached_credentials():
http = authenticator.authorize(httplib2.Http())
else: