#NEWLINE# def __new__( mcs , name , bases , attrs ) : #NEWLINE# #INDENT# options = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if attrs : #NEWLINE# #INDENT# options = base_options #NEWLINE# #UNINDENT# for base in bases [ : : ( - 1 ) ] : #NEWLINE# #INDENT# if ( hasattr ( base , 'base_options' ) and base . base_options ) : #NEWLINE# #INDENT# base_options = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# base_options . update ( base . base_options ) #NEWLINE# base_options . update ( options ) #NEWLINE# options = base_options #NEWLINE# #UNINDENT# #UNINDENT# attrs [ 'base_options' ] = options #NEWLINE# return type . __new__ ( mcs , name , bases , attrs )