Fix unicode on py2.7

This commit is contained in:
Ivan Habunek 2017-04-16 17:19:05 +02:00
parent e234598f2b
commit 2c121b2df4
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
1 changed files with 3 additions and 3 deletions

View File

@ -25,15 +25,15 @@ class ConsoleError(Exception):
def red(text):
return "\033[31m{}\033[0m".format(text)
return u"\033[31m{}\033[0m".format(text)
def green(text):
return "\033[32m{}\033[0m".format(text)
return u"\033[32m{}\033[0m".format(text)
def yellow(text):
return "\033[33m{}\033[0m".format(text)
return u"\033[33m{}\033[0m".format(text)
def print_error(text):