Skip to content
Myr

Fixed memory leak (see http://bugs.python.org/issue1208304)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jérémy Bethmont · committed by Jérémy Bethmont · parent 2ce26d4 · Browse files · 1 file+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:requests/models.py+7 added-1 removed
167 unmodified lines
168169 try:170 response.headers = CaseInsensitiveDict(getattr(resp.info(), 'dict', None))171 response.read = resp.read172 response._resp = resp172 response.close = resp.close173 response._close = resp.close174 except AttributeError:175 pass176177 response.url = getattr(resp, 'url', None)
219 unmodified lines
397 if self.error:398 raise self.error399400401 def close(self):402 if self._resp.fp is not None and hasattr(self._resp.fp, '_sock'):403 self._resp.fp._sock.recv = None404 self._close()405406class AuthManager(object):407 """Requests Authentication Manager."""408409 def __new__(cls):
166 unmodified lines