Skip to content

Commit

Permalink
Fix unicode on py2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ihabunek committed Apr 16, 2017
1 parent e234598 commit 2c121b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toot/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2c121b2

Please sign in to comment.