

def __new__(cls, name, bases, dictionary):
    global _transition_gatherer, _state_gatherer
    Machine = super(MetaStateMachine, cls).__new__(cls, name, bases, dictionary)
    Machine._class_transitions = []
    Machine._class_states = {
        
    }
    for s in _state_gatherer:
        Machine._add_class_state(*s)
    for i in _transition_gatherer:
        Machine._add_class_transition(*i)
    _transition_gatherer = []
    _state_gatherer = []
    return Machine

dataset/ETHPy150Open pyinvoke/invoke/invoke/vendor/fluidity/machine.py MetaStateMachine.__new__/original