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

Unified Diff: swarm_client/third_party/colorama/ansi.py

Issue 69143004: Delete swarm_client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 7 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
« no previous file with comments | « swarm_client/third_party/colorama/__init__.py ('k') | swarm_client/third_party/colorama/ansitowin32.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: swarm_client/third_party/colorama/ansi.py
===================================================================
--- swarm_client/third_party/colorama/ansi.py (revision 235167)
+++ swarm_client/third_party/colorama/ansi.py (working copy)
@@ -1,52 +0,0 @@
-'''
-This module generates ANSI character codes to printing colors to terminals.
-See: http://en.wikipedia.org/wiki/ANSI_escape_code
-'''
-
-CSI = '\033['
-
-def code_to_chars(code):
- return CSI + str(code) + 'm'
-
-class AnsiCodes(object):
- def __init__(self):
- for name in dir(self):
- if not name.startswith('_') and name.upper() == name:
- value = getattr(self, name)
- setattr(self, name, code_to_chars(value))
-
-
-class AnsiFore(AnsiCodes):
- BLACK = 30
- RED = 31
- GREEN = 32
- YELLOW = 33
- BLUE = 34
- MAGENTA = 35
- CYAN = 36
- WHITE = 37
- RESET = 39
-
-class AnsiBack(AnsiCodes):
- BLACK = 40
- RED = 41
- GREEN = 42
- YELLOW = 43
- BLUE = 44
- MAGENTA = 45
- CYAN = 46
- WHITE = 47
- RESET = 49
-
-class AnsiStyle(AnsiCodes):
- BRIGHT = 1
- DIM = 2
- NORMAL = 22
- RESET_ALL = 0
-
-
-# Constructing the object converts the code into the equivalent ANSI escape
-# string.
-Fore = AnsiFore()
-Back = AnsiBack()
-Style = AnsiStyle()
« no previous file with comments | « swarm_client/third_party/colorama/__init__.py ('k') | swarm_client/third_party/colorama/ansitowin32.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698