jdunck/python-unicodecsv — Issue #9: DictWriter.writerows throws AttributeError
Author: pwoolcoc
Created: 2011-10-10 02:51:07+00:00
State: open

Trying to use .writerows with DictWriter throws an error:

Traceback (most recent call last):
File "", line 1, in
File "...", line 168, in makeCSV
writer.writerows(rows)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/csv.py", line 153, in writerows
rows.append(self._dict_to_list(rowdict))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/csv.py", line 140, in _dict_to_list
if self.extrasaction == "raise":
AttributeError: DictWriter instance has no attribute 'extrasaction'

I will try to look into this when I have more time tomorrow, and submit a patch.