Mercurial > libervia-backend
comparison frontends/src/jp/output_std.py @ 2186:9061c7247964
jp (std output): force unicode on simple output
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Mar 2017 23:29:09 +0100 |
parents | 62dfa6e02f54 |
children | 322948499db0 |
comparison
equal
deleted
inserted
replaced
2185:dd53d7a3219a | 2186:9061c7247964 |
---|---|
37 host.register_output(C.OUTPUT_LIST, SIMPLE, self.list) | 37 host.register_output(C.OUTPUT_LIST, SIMPLE, self.list) |
38 host.register_output(C.OUTPUT_DICT, SIMPLE, self.dict) | 38 host.register_output(C.OUTPUT_DICT, SIMPLE, self.dict) |
39 host.register_output(C.OUTPUT_COMPLEX, SIMPLE, self.simple_print) | 39 host.register_output(C.OUTPUT_COMPLEX, SIMPLE, self.simple_print) |
40 | 40 |
41 def simple_print(self, data): | 41 def simple_print(self, data): |
42 self.host.disp(data) | 42 self.host.disp(unicode(data)) |
43 | 43 |
44 def list(self, data): | 44 def list(self, data): |
45 self.host.disp(u'\n'.join(data)) | 45 self.host.disp(u'\n'.join(data)) |
46 | 46 |
47 def dict(self, data): | 47 def dict(self, data): |