def report_diff_keyword_attr(fileobj, attr, diffs, keyword, ind=0):
 if (keyword in diffs):
  vals = diffs[keyword]
  for (idx, val) in enumerate(vals):
   if (val is None):
    continue
   if (idx == 0):
    dup = ''
   else:
    dup = '[{}]'.format((idx + 1))
   fileobj.write(indent(u(' Keyword {:8}{} has different {}:\n').format(keyword, dup, attr), ind))
   report_diff_values(fileobj, val[0], val[1], ind=(ind + 1))

def report_diff_keyword_attr ( fileobj , attr , diffs , keyword , ind = 0 ) : if ( keyword in diffs ) : vals = diffs [ keyword ] for ( idx , val ) in enumerate ( vals ) : if ( val is None ) : continue if ( idx == 0 ) : dup = '' else : dup = '[{}]' . format ( ( idx + 1 ) ) fileobj . write ( indent ( u ( ' Keyword {:8}{} has different {}:\n' ) . format ( keyword , dup , attr ) , ind ) ) report_diff_values ( fileobj , val [ 0 ] , val [ 1 ] , ind = ( ind + 1 ) )
write a diff between two header keyword values or comments to the specified file-like object .