From: Cory Benfield Date: Thu, 25 Jul 2013 18:10:42 +0000 (+0100) Subject: Document the Response.close() method. X-Git-Tag: 2.0~6^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f401287afb7da663e622a244bbaf22fcc32fca09;p=services%2Fpython-requests.git Document the Response.close() method. --- diff --git a/requests/models.py b/requests/models.py index 667b001..b5b1bd0 100644 --- a/requests/models.py +++ b/requests/models.py @@ -689,4 +689,9 @@ class Response(object): raise HTTPError(http_error_msg, response=self) def close(self): + """Closes the underlying file descriptor and releases the connection + back to the pool. + + *Note: Should not normally need to be called explicitly.* + """ return self.raw.release_conn()