Allow unicode strings to be printed to console
parent
ef1436bfc3
commit
7dc1eb7900
|
@ -47,7 +47,7 @@ class Tee(object):
|
||||||
sys.stdout = self.stdout
|
sys.stdout = self.stdout
|
||||||
def write(self, data):
|
def write(self, data):
|
||||||
self.target(data)
|
self.target(data)
|
||||||
self.stdout.write(data)
|
self.stdout.write(data.encode("utf-8"))
|
||||||
def flush(self):
|
def flush(self):
|
||||||
self.stdout.flush()
|
self.stdout.flush()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue