#NEWLINE# def serial_event( * event_types , **kwargs ) : #NEWLINE# #INDENT# if ( 'key' not in kwargs ) : #NEWLINE# #INDENT# raise TypeError ( 'key argument is required' ) #NEWLINE# #UNINDENT# def decorator( func ) : #NEWLINE# #INDENT# def factory( interface ) : #NEWLINE# #INDENT# zkclient = interface . config . root . get_instance ( 'components.SerialEventHandler.zkclient' , handler = SequentialGeventHandler ( ) ) #NEWLINE# return SerialEventHandler ( zkclient , interface , func , event_types , ** kwargs ) #NEWLINE# #UNINDENT# return Declaration ( factory ) #NEWLINE# #UNINDENT# return decorator