diff options
| author | Marco Buttu <marco.buttu@gmail.com> | 2017-04-27 14:23:34 +0200 |
|---|---|---|
| committer | Berker Peksag <berker.peksag@gmail.com> | 2017-04-27 15:23:34 +0300 |
| commit | e65fcde85abf6617508f2d6b77020e24b8ca6f6b (patch) | |
| tree | 8cc02a1cb4906417c52bf720c72a1de65ed56048 /Doc/library/urllib.parse.rst | |
| parent | 6fde770e4e940c19cd62de0b6aeb77840690843e (diff) | |
| download | cpython-git-e65fcde85abf6617508f2d6b77020e24b8ca6f6b.tar.gz | |
bpo-27200: Fix several doctests (GH-604)
Diffstat (limited to 'Doc/library/urllib.parse.rst')
| -rw-r--r-- | Doc/library/urllib.parse.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst index 7a5b56f5da..6754e26387 100644 --- a/Doc/library/urllib.parse.rst +++ b/Doc/library/urllib.parse.rst @@ -64,6 +64,9 @@ or on combining URL components into a URL string. input is presumed to be a relative URL and thus to start with a path component. + .. doctest:: + :options: +NORMALIZE_WHITESPACE + >>> from urllib.parse import urlparse >>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html') ParseResult(scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python.html', |
