From bf38d5bf529c89be336cd380067faea83b9287f4 Mon Sep 17 00:00:00 2001 From: sumitbinnani Date: Fri, 2 Oct 2015 13:50:52 +0530 Subject: [PATCH] Update models.py Updated Documentation: ```data``` as well as ```files``` supersedes json --- requests/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/models.py b/requests/models.py index 4270c647..6d6265d0 100644 --- a/requests/models.py +++ b/requests/models.py @@ -192,7 +192,7 @@ class Request(RequestHooksMixin): :param headers: dictionary of headers to send. :param files: dictionary of {filename: fileobject} files to multipart upload. :param data: the body to attach to the request. If a dictionary is provided, form-encoding will take place. - :param json: json for the body to attach to the request (if data is not specified). + :param json: json for the body to attach to the request (if files or data is not specified). :param params: dictionary of URL parameters to append to the URL. :param auth: Auth handler or (user, pass) tuple. :param cookies: dictionary or CookieJar of cookies to attach to this request.