Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix unicode on py2.7 - toot - Unnamed repository; edit this file 'description' …
Log
Files
Refs
LICENSE
---
commit 2c121b2df4717b64a7e9c809420dde7af0c6fe9b
parent e234598f2b967c6238ec30a9aa5050e2db907cd4
Author: Ivan Habunek <[email protected]>
Date: Sun, 16 Apr 2017 17:19:05 +0200
Fix unicode on py2.7
Diffstat:
toot/console.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/toot/console.py b/toot/console.py
@@ -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):
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.