Basic unicode input works

This commit is contained in:
Kovid Goyal
2018-02-08 22:16:39 +05:30
parent ac02e053ee
commit 194454715f
4 changed files with 99 additions and 2 deletions

View File

@@ -34,3 +34,7 @@ class Handler:
if isinstance(data, str):
data = data.encode('utf-8')
self.write_buf.append(data)
def print(self, *args, sep=' ', end='\r\n'):
data = sep.join(map(str, args)) + end
self.write(data)