Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 514f056

Browse files
committed
Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified to demonstrate correct behavior
2 parents 29ec595 + 8fd3669 commit 514f056

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/urllib.parse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ or on combining URL components into a URL string.
6969
>>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html')
7070
ParseResult(scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python.html',
7171
params='', query='', fragment='')
72-
>>> urlparse('www.cwi.nl:80/%7Eguido/Python.html')
72+
>>> urlparse('www.cwi.nl/%7Eguido/Python.html')
7373
ParseResult(scheme='', netloc='', path='www.cwi.nl:80/%7Eguido/Python.html',
7474
params='', query='', fragment='')
7575
>>> urlparse('help/Python.html')

0 commit comments

Comments
 (0)