#NEWLINE# def __new__( cls , name , bases , attrs ) : #NEWLINE# #INDENT# if ( name in cls . __blacklist__ ) : #NEWLINE# #INDENT# return super ( ExecutorMetaclass , cls ) . __new__ ( cls , name , bases , attrs ) #NEWLINE# #UNINDENT# class_name = attrs . get ( '__executor_name__' , '{}Executor' . format ( name ) ) #NEWLINE# new_class = super ( ExecutorMetaclass , cls ) . __new__ ( cls , class_name , bases , attrs ) #NEWLINE# if ( name not in cls . __instances__ ) : #NEWLINE# #INDENT# setattr ( new_class , 'executor_name' , class_name ) #NEWLINE# cls . __instances__ [ class_name ] = new_class #NEWLINE# #UNINDENT# return cls . __instances__ [ class_name ]