(slot_: FeedSlot)
| 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 |