#NEWLINE# def telnet_command( self , command ) : #NEWLINE# #INDENT# 'Establish a telnet connection and sends `command`.' #NEWLINE# telnet = telnetlib . Telnet ( self . _host ) #NEWLINE# telnet . write ( ( command . encode ( 'ASCII' ) + b'\r' ) ) #NEWLINE# telnet . read_very_eager ( ) #NEWLINE# telnet . close ( )