#NEWLINE# def field_repr( field , force_many = False ) : #NEWLINE# #INDENT# kwargs = field . _kwargs #NEWLINE# if force_many : #NEWLINE# #INDENT# kwargs = kwargs . copy ( ) #NEWLINE# kwargs [ 'many' ] = True #NEWLINE# kwargs . pop ( 'child' , None ) #NEWLINE# #UNINDENT# arg_string = ', ' . join ( [ smart_repr ( val ) for val in field . _args ] ) #NEWLINE# kwarg_string = ', ' . join ( [ ( '%s=%s' % ( key , smart_repr ( val ) ) ) for ( key , val ) in sorted ( kwargs . items ( ) ) ] ) #NEWLINE# if ( arg_string and kwarg_string ) : #NEWLINE# #INDENT# arg_string += ', ' #NEWLINE# #UNINDENT# if force_many : #NEWLINE# #INDENT# class_name = force_many . __class__ . __name__ #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# class_name = field . __class__ . __name__ #NEWLINE# #UNINDENT# return ( '%s(%s%s)' % ( class_name , arg_string , kwarg_string ) )