#NEWLINE# def _calldata_fields( fields , exclude_fields , format_ids ) : #NEWLINE# #INDENT# 'Utility function to determine which calldata (i.e., FORMAT) fields to\n    extract.' #NEWLINE# if ( exclude_fields is None ) : #NEWLINE# #INDENT# fields = ( config . STANDARD_CALLDATA_FIELDS + format_ids ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for f in fields : #NEWLINE# #INDENT# if ( ( f not in config . STANDARD_CALLDATA_FIELDS ) and ( f not in format_ids ) ) : #NEWLINE# #INDENT# print ( ( 'WARNING: no definition found for field %s' % f ) , file = sys . stderr ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( exclude_fields is not None ) : #NEWLINE# #INDENT# fields = [ f for f in fields if ( f not in exclude_fields ) ] #NEWLINE# #UNINDENT# return tuple ( fields )