summaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authorNate Prewitt <Nate.Prewitt@gmail.com>2018-04-07 15:11:00 -0700
committerNate Prewitt <Nate.Prewitt@gmail.com>2018-04-07 15:11:00 -0700
commitc7cea32304c05ef5890bcb8941edc8b6fbe04a03 (patch)
tree7a5d670da7f5b7a8403537f2099435ce2407194e /docs/api.rst
parent9c6bd54b44c0b05c6907522e8d9998a87b69c1cd (diff)
parentb66908e7b647689793e299edc111bf9910e93ad3 (diff)
downloadpython-requests-updating_3.0.0.tar.gz
Merge remote-tracking branch 'upstream/master' into updating_3.0.0updating_3.0.0
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst14
1 files changed, 2 insertions, 12 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 5f258944..cecb0fe9 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -108,17 +108,7 @@ Status Code Lookup
.. autoclass:: requests.codes
-::
-
- >>> requests.codes['temporary_redirect']
- 307
-
- >>> requests.codes.teapot
- 418
-
- >>> requests.codes['\o/']
- 200
-
+.. automodule:: requests.status_codes
Migrating to 1.x
@@ -190,7 +180,7 @@ API Changes
logging.basicConfig() # you need to initialize logging, otherwise you will not see anything from requests
logging.getLogger().setLevel(logging.DEBUG)
- requests_log = logging.getLogger("requests.packages.urllib3")
+ requests_log = logging.getLogger("urllib3")
requests_log.setLevel(logging.DEBUG)
requests_log.propagate = True