From f968fe013659b9b5b89f0316203de5f3139a7217 Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Wed, 6 Jun 2012 17:07:42 +0200 Subject: [PATCH] In fact, the feature is so awesome that it should go into index.rst --- docs/index.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index a3c98bc..758db4d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -18,13 +18,15 @@ Things shouldn’t be this way. Not in Python. :: - >>> r = requests.get('https://api.github.com', auth=('user', 'pass')) + >>> r = requests.get('http://httpbin.org/get', auth=('user', 'passwd')) >>> r.status_code - 204 + 200 >>> r.headers['content-type'] 'application/json' >>> r.text - ... + u'{\n "url": "http://httpbin.org/get", \n "headers": {... + >>> r.json + {u'url': u'http://httpbin.org/get', u'headers': {... See `the same code, without Requests `_. -- 2.7.4