comment
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# Colors module provides some color codes for console output.
|
||||
|
||||
colors = {'black' : "\033[30m",
|
||||
'red' : "\033[31m",
|
||||
@@ -42,6 +43,7 @@ colors = {'black' : "\033[30m",
|
||||
'default' : "\033[0m" }
|
||||
|
||||
def colorize(msg, color):
|
||||
"""Colorize the given message for console output"""
|
||||
if colors.has_key(color):
|
||||
return colors[color] + msg + colors['default']
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user