def produce_csv():
    'Iterate over job results and prepare rows for id table'
    reader = unicodecsv.reader(result_file)
    next(reader)
    i = 0
    for (row, local_id) in zip(reader, local_ids):
        if (row[1] == 'true'):
            sf_id = row[0]
            (yield '{},{}\n'.format(local_id, sf_id).encode('utf-8'))
        else:
            self.logger.warning('      Error on row {}: {}'.format(i, row[3]))
        i += 1
Iterate over job results and prepare rows for id table
def produce_csv():
    
    reader = unicodecsv.reader(result_file)
    next(reader)
    i = 0
    for (row, local_id) in zip(reader, local_ids):
        if (row[1] == 'true'):
            sf_id = row[0]
            (yield '{},{}\n'.format(local_id, sf_id).encode('utf-8'))
        else:
            self.logger.warning('      Error on row {}: {}'.format(i, row[3]))
        i += 1