File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -95,11 +95,6 @@ class ObsoleteVersionWarning(Warning):
95
95
"""The BigFrames version is too old."""
96
96
97
97
98
- class ColorFormatter :
99
- WARNING = "\033 [93m"
100
- ENDC = "\033 [0m"
101
-
102
-
103
98
def format_message (message : str , fill : bool = True ):
104
99
"""Formats a warning message with ANSI color codes for the warning color.
105
100
@@ -110,10 +105,9 @@ def format_message(message: str, fill: bool = True):
110
105
especially if the message already contains newlines.
111
106
112
107
Returns:
113
- The formatted message string, with ANSI color codes for warning color
114
- if color is supported, otherwise the original message. If `fill` is
115
- True, the message will be wrapped to fit the terminal width.
108
+ The formatted message string. If `fill` is True, the message will be wrapped
109
+ to fit the terminal width.
116
110
"""
117
111
if fill :
118
112
message = textwrap .fill (message )
119
- return ColorFormatter . WARNING + message + ColorFormatter . ENDC
113
+ return message
You can’t perform that action at this time.
0 commit comments