From 7197afa8874a3751a3dfafffc715c598e3be55ca Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Sat, 15 Aug 2015 21:53:11 +0200 Subject: [PATCH] Fixed minor rendering issue in documentation code blocks --- docs/user/quickstart.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index 2e9f633f..0b3e8f0b 100644 --- a/docs/user/quickstart.rst +++ b/docs/user/quickstart.rst @@ -228,9 +228,9 @@ For example, the GitHub API v3 accepts JSON-Encoded POST/PATCH data:: >>> payload = {'some': 'data'} >>> r = requests.post(url, data=json.dumps(payload)) - + Instead of encoding the ``dict`` yourself, you can also pass it directly using -the ``json`` parameter (added in version 2.4.2) and it will be encoded automatically: +the ``json`` parameter (added in version 2.4.2) and it will be encoded automatically:: >>> import json >>> url = 'https://api.github.com/some/endpoint' @@ -257,7 +257,7 @@ Requests makes it simple to upload Multipart-encoded files:: ... } -You can set the filename, content_type and headers explicitly: +You can set the filename, content_type and headers explicitly:: >>> url = 'http://httpbin.org/post' >>> files = {'file': ('report.xls', open('report.xls', 'rb'), 'application/vnd.ms-excel', {'Expires': '0'})}