예제 #1
0
 def __init__(self, output_file, termenc, controller):
     if isinstance(output_file, str):
         output_file = open(output_file, "w")
     self._buffer = codecs.getwriter(termenc)(StringIO())
     self._output = output_file
     self.__bufferring = False
     self._controller = controller
     self._io_mode = IOMode()