MCPcopy
hub / github.com/aio-libs/aiohttp / __del__

Method __del__

aiohttp/client_reqrep.py:556–567  ·  view source on GitHub ↗
(self, _warnings=warnings)

Source from the content-addressed store, hash-verified

554 self._source_traceback = traceback.extract_stack(sys._getframe(1))
555
556 def __del__(self, _warnings=warnings):
557 if self._closed:
558 return
559 self.close()
560
561 _warnings.warn("Unclosed response {!r}".format(self),
562 ResourceWarning)
563 context = {'client_response': self,
564 'message': 'Unclosed response'}
565 if self._source_traceback:
566 context['source_traceback'] = self._source_traceback
567 self._loop.call_exception_handler(context)
568
569 def __repr__(self):
570 out = io.StringIO()

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected