MCPcopy Create free account
hub / github.com/secdev/scapy / __init__

Method __init__

scapy/automaton.py:479–491  ·  view source on GitHub ↗
(self, state_func, automaton, *args, **kargs)

Source from the content-addressed store, hash-verified

477
478 class NewStateRequested(Exception):
479 def __init__(self, state_func, automaton, *args, **kargs):
480 # type: (Any, ATMT, Any, Any) -> None
481 self.func = state_func
482 self.state = state_func.atmt_state
483 self.initial = state_func.atmt_initial
484 self.error = state_func.atmt_error
485 self.stop = state_func.atmt_stop
486 self.final = state_func.atmt_final
487 Exception.__init__(self, "Request state [%s]" % self.state)
488 self.automaton = automaton
489 self.args = args
490 self.kargs = kargs
491 self.action_parameters() # init action parameters
492
493 def action_parameters(self, *args, **kargs):
494 # type: (Any, Any) -> ATMT.NewStateRequested

Callers

nothing calls this directly

Calls 2

action_parametersMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected