<s> """<STR_LIT>""" <EOL> from pycopia import clientserver <EOL> class PyObjectClient ( clientserver . TCPClient ) : <EOL> port = <NUM_LIT> <EOL> def initialize ( self ) : <EOL> fsm = self . fsm <EOL> fsm . set_default_transition ( self . _error , fsm . RESET ) <EOL> fsm . add_transition ( "<STR_LIT>" , fsm . RESET , self . _greet , <NUM_LIT:1> ) <EOL> fsm . add_transition ( "<STR_LIT>" , <NUM_LIT:1> , self . _bye , fsm . RESET ) <EOL> def _error ( self , s , fsm ) : <EOL> raise ClientExit , <NUM_LIT:1> <EOL> def _greet ( self , s , fsm ) : <EOL> fsm . writeln ( "<STR_LIT>" ) <EOL> fsm . writeln ( "<STR_LIT>" ) <EOL> def _bye ( self , s , fsm ) : <EOL> raise ClientExit , <NUM_LIT:0> </s>
