(self)
Helper for mt_interact() -- this executes in the other thread.
Helper for mt_interact() -- this executes in the other thread.
Helper for mt_interact () -- this executes in the other thread .
def listener(self):
        """Helper for mt_interact() -- this executes in the other thread."""
        while 1:
            try:
                data = self.read_eager()
            except EOFError:
                print('*** Connection closed by remote host ***')
                return
            if data:
                sys.stdout.write(data.decode('ascii'))
            else:
                sys.stdout.flush()
def listener ( self ) : while 1 : try : data = self . read_eager ( ) except EOFError : print ( '*** Connection closed by remote host ***' ) return if data : sys . stdout . write ( data . decode ( 'ascii' ) ) else : sys . stdout . flush ( )