summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd2/ansi.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/cmd2/ansi.py b/cmd2/ansi.py
index 8cbf7e37..27086d4a 100644
--- a/cmd2/ansi.py
+++ b/cmd2/ansi.py
@@ -32,14 +32,8 @@ class ColorBase(Enum):
Base class for fg and bg classes
This expects the child classes to define enums of: color name -> ANSI color sequence
"""
- def __str__(self) -> str:
- """Return ANSI color sequence instead of enum name"""
- return self.value
-
def __add__(self, other: Any) -> str:
"""Return self + other as string"""
- if isinstance(other, (fg, bg)):
- other = str(other)
return self.value + other
def __radd__(self, other: Any) -> str: