Skip to content
Myr

Clearer description of Response.close().

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

authored by Cory Benfield · committed by Cory Benfield · parent 7fa9799 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/models.py+2 added-2 removed
789 unmodified lines
790 if http_error_msg:791 raise HTTPError(http_error_msg, response=self)792793 def close(self):794 """Closes the underlying file descriptor and releases the connection795 back to the pool.794 """Releases the connection back to the pool. Once this method has been795 called the underlying ``raw`` object must not be accessed again.796797 *Note: Should not normally need to be called explicitly.*798 """799 return self.raw.release_conn()