Skip to content
Myr

Change variable '_r' to 'r' for consistency.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Locker537 · committed by Locker537 · parent 4130cf9 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/user/quickstart.rst+3 added-3 removed
258 unmodified lines
259260If we made a bad request (non-200 response), we can raise it with261:class:`Response.raise_for_status()`::262263 >>> _r = requests.get('http://httpbin.org/status/404')264 >>> _r.status_code263 >>> r = requests.get('http://httpbin.org/status/404')264 >>> r.status_code265 404266267 >>> _r.raise_for_status()267 >>> r.raise_for_status()268 Traceback (most recent call last):269 File "requests/models.py", line 832, in raise_for_status270 raise http_error271 requests.exceptions.HTTPError: 404 Client Error
191 unmodified lines