From: Hans Lellelid Date: Thu, 20 Dec 2012 14:47:29 +0000 (-0500) Subject: Updated API docs for 'data' param in sessions module to indicate that file-like objec... X-Git-Tag: v1.0.4~33^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfef8d99c856b4700f09f16f50cf1ac8818a9e0c;p=services%2Fpython-requests.git Updated API docs for 'data' param in sessions module to indicate that file-like object is also supported. --- 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. """