Kaydet (Commit) b1bbc0b3 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

Fix issue16932: Fix the urlparse example. Remote :port when scheme is not…

Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified to demonstrate correct behavior
üst d36d4e0d
...@@ -71,7 +71,7 @@ The :mod:`urlparse` module defines the following functions: ...@@ -71,7 +71,7 @@ The :mod:`urlparse` module defines the following functions:
>>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html') >>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html')
ParseResult(scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python.html', ParseResult(scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python.html',
params='', query='', fragment='') 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', ParseResult(scheme='', netloc='', path='www.cwi.nl:80/%7Eguido/Python.html',
params='', query='', fragment='') params='', query='', fragment='')
>>> urlparse('help/Python.html') >>> urlparse('help/Python.html')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment