LPCBeremiz.py
changeset 578 6f5795bdee49
parent 576 7fcdc0d3d8d9
child 596 b36422acae13
equal deleted inserted replaced
577:04baf6607a44 578:6f5795bdee49
  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)