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

Unified Diff: depot-tools-auth.py

Issue 1851283002: Fix coloring madness in depot_tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Improve logic a bit Created 4 years, 8 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 | gclient.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: depot-tools-auth.py
diff --git a/depot-tools-auth.py b/depot-tools-auth.py
index 87ec1ccf00c861e34e87408b9b913bcc2d8df32f..853eef4cf29a031557bdd8f6c88dafd4519c342f 100755
--- a/depot-tools-auth.py
+++ b/depot-tools-auth.py
@@ -16,9 +16,8 @@ import optparse
import sys
import os
-from third_party import colorama
-
import auth
+import setup_color
import subcommand
__version__ = '1.0'
@@ -95,7 +94,7 @@ def main(argv):
if __name__ == '__main__':
- colorama.init(wrap="TERM" not in os.environ)
+ setup_color.init()
try:
sys.exit(main(sys.argv[1:]))
except KeyboardInterrupt:
« no previous file with comments | « no previous file | gclient.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698