Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Merge pull request #4193 from Gallaecio/lgtm

Mikhail Korobov4d594b8c2bf3
diff --cc scrapy/exporters.py
index 5bf131312,0c28c2d7f..1a3c9345f
--- a/scrapy/exporters.py
+++ b/scrapy/exporters.py
@@@ -199,9 -201,9 +200,9 @@@ class CsvItemExporter(BaseItemExporter)
line_buffering=False,
write_through=True,
encoding=self.encoding,
- newline='' # Windows needs this https://github.com/scrapy/scrapy/issues/3034
+ newline='' # Windows needs this https://github.com/scrapy/scrapy/issues/3034
)
- self.csv_writer = csv.writer(self.stream, **kwargs)
+ self.csv_writer = csv.writer(self.stream, **self._kwargs)
self._headers_not_written = True
self._join_multivalued = join_multivalued