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:
4130cf9
)
Change variable '_r' to 'r' for consistency.
author
Locker537
<locker537@gmail.com>
Thu, 16 Aug 2012 20:27:31 +0000
(16:27 -0400)
committer
Locker537
<locker537@gmail.com>
Thu, 16 Aug 2012 20:27:31 +0000
(16:27 -0400)
docs/user/quickstart.rst
patch
|
blob
|
history
diff --git
a/docs/user/quickstart.rst
b/docs/user/quickstart.rst
index
71ffea0
..
c0ecf8d
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
+ >>> r = requests.get('http://httpbin.org/status/404')
+ >>> r.status_code
404
- >>>
_
r.raise_for_status()
+ >>> r.raise_for_status()
Traceback (most recent call last):
File "requests/models.py", line 832, in raise_for_status
raise http_error