#NEWLINE# def __call__( self , twitter , options ) : #NEWLINE# #INDENT# action = actions . get ( options [ 'action' ] , NoSuchAction ) ( ) #NEWLINE# try : #NEWLINE# #INDENT# doAction = ( lambda : action ( twitter , options ) ) #NEWLINE# if ( options [ 'refresh' ] and isinstance ( action , StatusAction ) ) : #NEWLINE# #INDENT# while True : #NEWLINE# #INDENT# doAction ( ) #NEWLINE# sys . stdout . flush ( ) #NEWLINE# time . sleep ( options [ 'refresh_rate' ] ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# doAction ( ) #NEWLINE# #UNINDENT# #UNINDENT# except KeyboardInterrupt : #NEWLINE# #INDENT# print ( '\n[Keyboard Interrupt]' , file = sys . stderr ) #NEWLINE# pass