#NEWLINE# def do_login( self , line ) : #NEWLINE# #INDENT# 'login <username> <password>' #NEWLINE# tokens = line . split ( ' ' , 1 ) #NEWLINE# if ( len ( tokens ) != 2 ) : #NEWLINE# #INDENT# self . logger . warning ( 'Wrong number of arguments' ) #NEWLINE# return #NEWLINE# #UNINDENT# ( username , password ) = tokens #NEWLINE# self . session . login ( username , password , remember_me = True ) #NEWLINE# self . logged_in . wait ( )