Scrapy, a fast high-level web crawling & scraping framework for Python.
Changes fallback for CSVItemExporter, avoiding to call to_native_str(str()).
stummjr27758f60ada4
diff --git a/scrapy/exporters.py b/scrapy/exporters.pyindex 55d74332b..35f50838b 100644--- a/scrapy/exporters.py+++ b/scrapy/exporters.py@@ -200,7 +200,7 @@ class CsvItemExporter(BaseItemExporter):try:yield to_native_str(s)except TypeError:- yield to_native_str(str(s))+ yield sdef _write_headers_and_set_fields_to_export(self, item):if self.include_headers_line: