MCPcopy
hub / github.com/scrapy/scrapy / _join_if_needed

Method _join_if_needed

scrapy/exporters.py:255–261  ·  view source on GitHub ↗
(self, value: Any)

Source from the content-addressed store, hash-verified

253 return serializer(value)
254
255 def _join_if_needed(self, value: Any) -> Any:
256 if isinstance(value, (list, tuple)):
257 try:
258 return self._join_multivalued.join(value)
259 except TypeError: # list in value may not contain strings
260 pass
261 return value
262
263 def export_item(self, item: Any) -> None:
264 if self._headers_not_written:

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected