MCPcopy
hub / github.com/scrapy/scrapy / _build_row

Method _build_row

scrapy/exporters.py:275–280  ·  view source on GitHub ↗
(self, values: Iterable[Any])

Source from the content-addressed store, hash-verified

273 self.stream.detach() # Avoid closing the wrapped file.
274
275 def _build_row(self, values: Iterable[Any]) -> Iterable[Any]:
276 for s in values:
277 try:
278 yield to_unicode(s, self.encoding)
279 except TypeError:
280 yield s
281
282 def _write_headers_and_set_fields_to_export(self, item: Any) -> None:
283 if self.include_headers_line:

Callers 2

export_itemMethod · 0.95

Calls 1

to_unicodeFunction · 0.90

Tested by

no test coverage detected