'Similar to csv.writer.writerow but with the custom quoting behavior.
Returns the written string instead of the length of that string.'

def writerow(self, values):

    has_empty = False
    if self.quote_empty:
        for (i, value) in enumerate(values):
            if (value == ''):
                has_empty = True
                values[i] = self.replace_sentinel
    return self._writerow(self.writer.writerow, values, has_empty)
