<s> class EventHook ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> self . _handlers = [ ] <EOL> def __iadd__ ( self , handler ) : <EOL> self . _handlers . append ( handler ) <EOL> return self <EOL> def __isub__ ( self , handler ) : <EOL> self . _handlers . remove ( handler ) <EOL> return self <EOL> def fire ( self , ** kwargs ) : <EOL> for handler in self . _handlers : <EOL> handler ( ** kwargs ) <EOL> request_success = EventHook ( ) <EOL> """<STR_LIT>""" <EOL> request_failure = EventHook ( ) <EOL> """<STR_LIT>""" <EOL> locust_error = EventHook ( ) <EOL> """<STR_LIT>""" <EOL> report_to_master = EventHook ( ) <EOL> """<STR_LIT>""" <EOL> slave_report = EventHook ( ) <EOL> """<STR_LIT>""" <EOL> hatch_complete = EventHook ( ) <EOL> """<STR_LIT>""" <EOL> quitting = EventHook ( ) <EOL> """<STR_LIT>""" <EOL> master_start_hatching = EventHook ( ) <EOL> """<STR_LIT>""" <EOL> master_stop_hatching = EventHook ( ) <EOL> """<STR_LIT>""" <EOL> locust_start_hatching = EventHook ( ) <EOL> """<STR_LIT>""" <EOL> locust_stop_hatching = EventHook ( ) <EOL> """<STR_LIT>""" </s>
