projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff55d73
)
Change variable '_r' to 'bad_r' to avoid confusion about Python's private variable...
author
Locker537
<locker537@gmail.com>
Thu, 16 Aug 2012 20:50:01 +0000
(16:50 -0400)
committer
Locker537
<locker537@gmail.com>
Thu, 16 Aug 2012 20:50:01 +0000
(16:50 -0400)
docs/user/quickstart.rst
patch
|
blob
|
history
diff --git
a/docs/user/quickstart.rst
b/docs/user/quickstart.rst
index
c0ecf8d
..
7d0fe5b
100644
(file)
--- 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