From bfef8d99c856b4700f09f16f50cf1ac8818a9e0c Mon Sep 17 00:00:00 2001 From: Hans Lellelid Date: Thu, 20 Dec 2012 09:47:29 -0500 Subject: [PATCH] Updated API docs for 'data' param in sessions module to indicate that file-like object is also supported. --- requests/sessions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requests/sessions.py b/requests/sessions.py index 36a760d..982e96f 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -316,7 +316,7 @@ class Session(SessionRedirectMixin): """Sends a POST request. Returns :class:`Response` object. :param url: URL for the new :class:`Request` object. - :param data: (optional) Dictionary or bytes to send in the body of the :class:`Request`. + :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`. :param \*\*kwargs: Optional arguments that ``request`` takes. """ @@ -326,7 +326,7 @@ class Session(SessionRedirectMixin): """Sends a PUT request. Returns :class:`Response` object. :param url: URL for the new :class:`Request` object. - :param data: (optional) Dictionary or bytes to send in the body of the :class:`Request`. + :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`. :param \*\*kwargs: Optional arguments that ``request`` takes. """ @@ -336,7 +336,7 @@ class Session(SessionRedirectMixin): """Sends a PATCH request. Returns :class:`Response` object. :param url: URL for the new :class:`Request` object. - :param data: (optional) Dictionary or bytes to send in the body of the :class:`Request`. + :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`. :param \*\*kwargs: Optional arguments that ``request`` takes. """ -- 2.7.4