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