Skip to content

Commit

Permalink
docs: Fix docs (#44)
Browse files Browse the repository at this point in the history
* docs: fix install command

* docs: fix documentation example

* docs: fix example about url replacing
  • Loading branch information
plusiv authored Oct 23, 2023
1 parent 0dda1fd commit 8124920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Replacing URL components with the ``URL`` class:
>>> urlobj = URL('https://example.org/path/../file.txt')
>>> urlobj.host = 'example.com'
>>> urlobj.href
'https://example.com/path/file.txt'
'https://example.com/file.txt'
Replacing URL components with the ``replace_url`` function:

Expand Down Expand Up @@ -129,7 +129,7 @@ Contrast that with the Python standard library's ``urlib.parse`` module:
.. code-block:: python
>>> from urllib.parse import urlparse
>>> parsed_url = urlparse()
>>> parsed_url = urlparse('https://www.GOoglé.com/./path/../path2/')
>>> parsed_url.hostname
'www.googlé.com'
>>> parsed_url.path
Expand Down

0 comments on commit 8124920

Please sign in to comment.