#NEWLINE# def initialize( self ) : #NEWLINE# #INDENT# fsm = self . fsm #NEWLINE# fsm . set_default_transition ( self . _error , fsm . RESET ) #NEWLINE# fsm . add_transition ( fsm . ANY , fsm . RESET , self . _start , 1 ) #NEWLINE# fsm . add_transition ( 'GREETINGS_FROM_CLIENT2' , 1 , None , 2 ) #NEWLINE# fsm . add_transition ( 'BYE_FROM_CLIENT2' , 2 , self . _bye , fsm . RESET ) #NEWLINE# fsm . step ( fsm . ANY )