Add errors parameter in documentation.

This commit is contained in:
maranqz 2020-08-26 14:00:51 +03:00
parent a2d6fa5adc
commit 560c335c07
1 changed files with 5 additions and 1 deletions

View File

@ -292,7 +292,7 @@ XmlItemExporter
CsvItemExporter
---------------
.. class:: CsvItemExporter(file, include_headers_line=True, join_multivalued=',', **kwargs)
.. class:: CsvItemExporter(file, include_headers_line=True, join_multivalued=',', errors=None, **kwargs)
Exports items in CSV format to the given file-like object. If the
:attr:`fields_to_export` attribute is set, it will be used to define the
@ -311,6 +311,10 @@ CsvItemExporter
multi-valued fields, if found.
:type include_headers_line: str
:param errors: The optional string that specifies how encoding and decoding errors are to be handled.
For more information see `documentation <https://docs.python.org/3/library/io.html#io.TextIOWrapper>`_.
:type errors: str
The additional keyword arguments of this ``__init__`` method are passed to the
:class:`BaseItemExporter` ``__init__`` method, and the leftover arguments to the
:func:`csv.writer` function, so you can use any :func:`csv.writer` function