Last fixes to documentation consistency
MODIFY
README.rst
README.rst
@@ -33,11 +33,12 @@ urllib3 is powerful and easy to use:
.. code-block:: pycon
>>> import urllib3
- >>> resp = urllib3.request("GET", "https://httpbin.org/robots.txt")
+ >>> http = urllib3.PoolManager()
+ >>> resp = http.request("GET", "http://httpbin.org/robots.txt")
>>> resp.status
200
>>> resp.data
- "User-agent: *\nDisallow: /deny\n"
+ b"User-agent: *\nDisallow: /deny\n"
Installing

MODIFY
docs/index.rst
docs/index.rst
@@ -38,7 +38,7 @@ urllib3 is powerful and easy to use:
>>> resp.status
200
>>> resp.data
- "User-agent: *\nDisallow: /deny\n"
+ b"User-agent: *\nDisallow: /deny\n"
For Enterprise
--------------

MODIFY
docs/user-guide.rst
docs/user-guide.rst
@@ -234,10 +234,10 @@ in the URL:
.. code-block:: python
import json
- import urllib3
from urllib.parse import urlencode
+ import urllib3
- # Encode the args into url grammer.
+ # Encode the args into url grammar.
encoded_args = urlencode({"arg": "value"})
# Create a URL with args encoded.

Last fixes to documentation consistency