mirror of
https://github.com/ihabunek/toot.git
synced 2025-02-02 15:07:51 -05:00
Fix unicode on py2.7
This commit is contained in:
parent
e234598f2b
commit
2c121b2df4
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user