equal
deleted
inserted
replaced
1120 return "" |
1120 return "" |
1121 |
1121 |
1122 """ Base class for file like objects to facilitate StdOut for the Shell.""" |
1122 """ Base class for file like objects to facilitate StdOut for the Shell.""" |
1123 def write(self, s, style = None): |
1123 def write(self, s, style = None): |
1124 if s != '': |
1124 if s != '': |
1125 self.socket.send(s) |
1125 self.socket.send(s.encode('utf8')) |
1126 |
1126 |
|
1127 def writeyield(self, s): |
|
1128 self.write(s) |
|
1129 |
1127 def write_warning(self, s): |
1130 def write_warning(self, s): |
1128 self.write(s) |
1131 self.write(s) |
1129 |
1132 |
1130 def write_error(self, s): |
1133 def write_error(self, s): |
1131 self.write(s) |
1134 self.write(s) |