MCPcopy
hub / github.com/scrapy/scrapy / _add_comma_after_first

Method _add_comma_after_first

scrapy/exporters.py:145–150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

143 self.file.write(b"\n")
144
145 def _add_comma_after_first(self) -> None:
146 if self.first_item:
147 self.first_item = False
148 else:
149 self.file.write(b",")
150 self._beautify_newline()
151
152 def start_exporting(self) -> None:
153 self.file.write(b"[")

Callers 1

export_itemMethod · 0.95

Calls 2

_beautify_newlineMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected