fixes #23
parent
df60fbf335
commit
255fff88bd
|
@ -83,21 +83,21 @@ def print_att(message):
|
||||||
|
|
||||||
def yellow(text):
|
def yellow(text):
|
||||||
try:
|
try:
|
||||||
colored(text.decode('utf8'), 'yellow', attrs=['bold'])
|
return colored(text.decode('utf8'), 'yellow', attrs=['bold'])
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
colored(unicode(text, errors='ignore'), 'yellow', attrs=['bold'])
|
return colored(unicode(text, errors='ignore'), 'yellow', attrs=['bold'])
|
||||||
|
|
||||||
def green(text):
|
def green(text):
|
||||||
try:
|
try:
|
||||||
colored(text.decode('utf8'), 'green', attrs=['bold'])
|
return colored(text.decode('utf8'), 'green', attrs=['bold'])
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
colored(unicode(text, errors='ignore'), 'green', attrs=['bold'])
|
return colored(unicode(text, errors='ignore'), 'green', attrs=['bold'])
|
||||||
|
|
||||||
def red(text):
|
def red(text):
|
||||||
try:
|
try:
|
||||||
colored(text.decode('utf8'), 'red', attrs=['bold'])
|
return colored(text.decode('utf8'), 'red', attrs=['bold'])
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
colored(unicode(text, errors='ignore'), 'red', attrs=['bold'])
|
return colored(unicode(text, errors='ignore'), 'red', attrs=['bold'])
|
||||||
|
|
||||||
# Structures
|
# Structures
|
||||||
# Taken from http://insecurety.net/?p=768
|
# Taken from http://insecurety.net/?p=768
|
||||||
|
|
Loading…
Reference in New Issue