#NEWLINE# def __init__( self , machine , name , config , collection = None , validate = True ) : #NEWLINE# #INDENT# super ( BallLock , self ) . __init__ ( machine , name , config , collection , validate = validate ) #NEWLINE# self . balls_locked = 0 #NEWLINE# self . lock_queue = deque ( ) #NEWLINE# self . machine . events . add_handler ( 'init_phase_3' , self . _initialize )