update documentation to correspond to new cookie API
authorShivaram Lingamneni <slingamn@cs.stanford.edu>
Wed, 2 May 2012 04:46:04 +0000 (21:46 -0700)
committerShivaram Lingamneni <slingamn@cs.stanford.edu>
Wed, 2 May 2012 04:46:53 +0000 (21:46 -0700)
docs/user/quickstart.rst

index 70ec5f1..6231630 100644 (file)
@@ -302,8 +302,8 @@ If a response contains some Cookies, you can get quick access to them::
     >>> url = 'http://httpbin.org/cookies/set/requests-is/awesome'
     >>> r = requests.get(url)
 
-    >>> print r.cookies
-    {'requests-is': 'awesome'}
+    >>> r.cookies['requests-is']
+    'awesome'
 
 To send your own cookies to the server, you can use the ``cookies``
 parameter::