MCPcopy
hub / github.com/scrapy/scrapy / _get_file

Method _get_file

scrapy/extensions/feedexport.py:538–543  ·  view source on GitHub ↗
(slot_: FeedSlot)

Source from the content-addressed store, hash-verified

536
537 @staticmethod
538 def _get_file(slot_: FeedSlot) -> IO[bytes]:
539 assert slot_.file
540 if isinstance(slot_.file, PostProcessingManager):
541 slot_.file.close()
542 return slot_.file.file
543 return slot_.file
544
545 async def _close_slot(self, slot: FeedSlot, spider: Spider) -> None:
546

Callers 1

_close_slotMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected