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

Unified Diff: client/auth.py

Issue 1233303003: Migrate and merge logging_utils from swarming_bot into client/utils. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Changed formatter Created 5 years, 5 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: client/auth.py
diff --git a/client/auth.py b/client/auth.py
index ece0a5178fa260c20b370a8bf686c28fb1d0452d..81d7a8ad33731a6a8577ce1acfd28d9415469f6a 100755
--- a/client/auth.py
+++ b/client/auth.py
@@ -15,6 +15,7 @@ from third_party import colorama
from third_party.depot_tools import fix_encoding
from third_party.depot_tools import subcommand
+from utils import logging_utils
from utils import on_error
from utils import net
from utils import oauth
@@ -136,9 +137,10 @@ def CMDcheck(parser, args):
return 0
-class OptionParserAuth(tools.OptionParserWithLogging):
+class OptionParserAuth(logging_utils.OptionParserWithLogging):
def __init__(self, **kwargs):
- tools.OptionParserWithLogging.__init__(self, prog='auth.py', **kwargs)
+ logging_utils.OptionParserWithLogging.__init__(
+ self, prog='auth.py', **kwargs)
self.server_group = tools.optparse.OptionGroup(self, 'Server')
self.server_group.add_option(
'-S', '--service',
@@ -148,7 +150,7 @@ class OptionParserAuth(tools.OptionParserWithLogging):
add_auth_options(self)
def parse_args(self, *args, **kwargs):
- options, args = tools.OptionParserWithLogging.parse_args(
+ options, args = logging_utils.OptionParserWithLogging.parse_args(
self, *args, **kwargs)
options.service = options.service.rstrip('/')
if not options.service:

Powered by Google App Engine
This is Rietveld 408576698