#NEWLINE# def gen_init( cls , thrift_spec = None , default_spec = None ) : #NEWLINE# #INDENT# if ( thrift_spec is not None ) : #NEWLINE# #INDENT# cls . thrift_spec = thrift_spec #NEWLINE# #UNINDENT# if ( default_spec is not None ) : #NEWLINE# #INDENT# cls . __init__ = init_func_generator ( default_spec ) #NEWLINE# #UNINDENT# return cls