From: Locker537 Date: Thu, 16 Aug 2012 20:50:01 +0000 (-0400) Subject: Change variable '_r' to 'bad_r' to avoid confusion about Python's private variable... X-Git-Tag: v0.13.7~5^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9d3ce2e10339d41aeaeb24c4226c4ce17558b53;p=services%2Fpython-requests.git Change variable '_r' to 'bad_r' to avoid confusion about Python's private variable convention. --- diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index c0ecf8d..7d0fe5b 100644 --- a/docs/user/quickstart.rst +++ b/docs/user/quickstart.rst @@ -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