mirror of
https://github.com/python/cpython.git
synced 2025-10-25 15:58:57 +00:00
Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified to demonstrate correct behavior
This commit is contained in:
parent
a5f13d2a5f
commit
8fd366978d
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ or on combining URL components into a URL string.
|
|||
>>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html')
|
||||
ParseResult(scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python.html',
|
||||
params='', query='', fragment='')
|
||||
>>> urlparse('www.cwi.nl:80/%7Eguido/Python.html')
|
||||
>>> urlparse('www.cwi.nl/%7Eguido/Python.html')
|
||||
ParseResult(scheme='', netloc='', path='www.cwi.nl:80/%7Eguido/Python.html',
|
||||
params='', query='', fragment='')
|
||||
>>> urlparse('help/Python.html')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue