def check_header_dups(header, errors):
 for curr_elem in range(len(header)):
  if (header.count(header[curr_elem]) != 1):
   errors.append((('%s found in header %d times.  ' % (header[curr_elem], header.count(header[curr_elem]))) + ('Header fields must be unique. DCTB %d,%d' % (0, curr_elem))))
 return errors

def check_header_dups ( header , errors ) : for curr_elem in range ( len ( header ) ) : if ( header . count ( header [ curr_elem ] ) != 1 ) : errors . append ( ( ( '%s found in header %d times.  ' % ( header [ curr_elem ] , header . count ( header [ curr_elem ] ) ) ) + ( 'Header fields must be unique. DCTB %d,%d' % ( 0 , curr_elem ) ) ) ) return errors
checks for duplicates in headers .