'Call ``writerow_func`` (either writerow or writerows) with ``values``.
If it has empty fields that have been replaced then change those
sentinel strings back to quoted empty strings, e.g. ``""``.'

def _writerow(self, writerow_func, values, has_empty):

    self.temp_out.seek(0)
    self.temp_out.truncate()
    writerow_func(values)
    row_string = self.temp_out.getvalue()
    if (self.quote_empty and has_empty):
        row_string = re.sub(self.replace_sentinel, self.quotechar2, row_string)
    if self.csvfile:
        self.csvfile.write(row_string)
    return row_string
