mirror of https://github.com/scrapy/scrapy.git
Changes fallback for CSVItemExporter, avoiding to call to_native_str(str()).
This commit is contained in:
parent
c55ff110a3
commit
27758f60ad
|
|
@ -200,7 +200,7 @@ class CsvItemExporter(BaseItemExporter):
|
|||
try:
|
||||
yield to_native_str(s)
|
||||
except TypeError:
|
||||
yield to_native_str(str(s))
|
||||
yield s
|
||||
|
||||
def _write_headers_and_set_fields_to_export(self, item):
|
||||
if self.include_headers_line:
|
||||
|
|
|
|||
Loading…
Reference in New Issue