From: Kenneth Reitz Date: Thu, 7 Jun 2012 01:02:32 +0000 (+0200) Subject: Revert "In fact, the feature is so awesome that it should go into index.rst" X-Git-Tag: v0.13.1~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dda9689ca4f3a5b241c3544a96159fb3a21597d0;p=services%2Fpython-requests.git Revert "In fact, the feature is so awesome that it should go into index.rst" This reverts commit f968fe013659b9b5b89f0316203de5f3139a7217. --- diff --git a/docs/index.rst b/docs/index.rst index 758db4d..a3c98bc 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -18,15 +18,13 @@ Things shouldn’t be this way. Not in Python. :: - >>> r = requests.get('http://httpbin.org/get', auth=('user', 'passwd')) + >>> r = requests.get('https://api.github.com', auth=('user', 'pass')) >>> r.status_code - 200 + 204 >>> 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 `_.