Allow unicode strings to be printed to console

master
Kliment Yanev 2012-01-09 14:07:28 +01:00
parent ef1436bfc3
commit 7dc1eb7900
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class Tee(object):
sys.stdout = self.stdout
def write(self, data):
self.target(data)
self.stdout.write(data)
self.stdout.write(data.encode("utf-8"))
def flush(self):
self.stdout.flush()