Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/scrapy/scrapy
/ _beautify_newline
Method
_beautify_newline
scrapy/exporters.py:141–143 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
139
self.first_item = True
140
141
def
_beautify_newline(self) -> None:
142
if
self.indent is not None:
143
self.file.write(b
"\n"
)
144
145
def
_add_comma_after_first(self) -> None:
146
if
self.first_item:
Callers
3
_add_comma_after_first
Method · 0.95
start_exporting
Method · 0.95
finish_exporting
Method · 0.95
Calls
1
write
Method · 0.45
Tested by
no test coverage detected