#NEWLINE# def __new__( mcs , class_name , bases , attrs ) : #NEWLINE# #INDENT# fields = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# new_attrs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( n , v ) in attrs . iteritems ( ) : #NEWLINE# #INDENT# if isinstance ( v , Field ) : #NEWLINE# #INDENT# fields [ n ] = v #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# new_attrs [ n ] = v #NEWLINE# #UNINDENT# #UNINDENT# cls = super ( ItemMeta , mcs ) . __new__ ( mcs , class_name , class_name , new_attrs ) #NEWLINE# cls . fields = cls . fields . copy ( ) #NEWLINE# cls . fields . update ( fields ) #NEWLINE# return cls