We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dda1fd commit 8124920Copy full SHA for 8124920
README.rst
@@ -66,7 +66,7 @@ Replacing URL components with the ``URL`` class:
66
>>> urlobj = URL('https://example.org/path/../file.txt')
67
>>> urlobj.host = 'example.com'
68
>>> urlobj.href
69
- 'https://example.com/path/file.txt'
+ 'https://example.com/file.txt'
70
71
Replacing URL components with the ``replace_url`` function:
72
@@ -129,7 +129,7 @@ Contrast that with the Python standard library's ``urlib.parse`` module:
129
.. code-block:: python
130
131
>>> from urllib.parse import urlparse
132
- >>> parsed_url = urlparse()
+ >>> parsed_url = urlparse('https://www.GOoglé.com/./path/../path2/')
133
>>> parsed_url.hostname
134
'www.googlé.com'
135
>>> parsed_url.path
0 commit comments