Change variable '_r' to 'bad_r' to avoid confusion about Python's private variable...
authorLocker537 <locker537@gmail.com>
Thu, 16 Aug 2012 20:50:01 +0000 (16:50 -0400)
committerLocker537 <locker537@gmail.com>
Thu, 16 Aug 2012 20:50:01 +0000 (16:50 -0400)
docs/user/quickstart.rst

index c0ecf8d..7d0fe5b 100644 (file)
@@ -260,11 +260,11 @@ reference::
 If we made a bad request (non-200 response), we can raise it with
 :class:`Response.raise_for_status()`::
 
-    >>> r = requests.get('http://httpbin.org/status/404')
-    >>> r.status_code
+    >>> bad_r = requests.get('http://httpbin.org/status/404')
+    >>> bad_r.status_code
     404
 
-    >>> r.raise_for_status()
+    >>> bad_r.raise_for_status()
     Traceback (most recent call last):
       File "requests/models.py", line 832, in raise_for_status
         raise http_error