Clearer description of Response.close().
authorCory Benfield <lukasaoz@gmail.com>
Mon, 28 Apr 2014 18:42:30 +0000 (19:42 +0100)
committerCory Benfield <lukasaoz@gmail.com>
Mon, 28 Apr 2014 18:42:30 +0000 (19:42 +0100)
requests/models.py

index 7390d1c669523c6e378910d1ea8b67c7f017aaa8..f5afebc890da324a7f51bdafee585e57bac51e42 100644 (file)
@@ -791,8 +791,8 @@ 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.
+        """Releases the connection back to the pool. Once this method has been
+        called the underlying ``raw`` object must not be accessed again.
 
         *Note: Should not normally need to be called explicitly.*
         """