summaryrefslogtreecommitdiffstats
path: root/Doc/library/urllib.parse.rst
diff options
context:
space:
mode:
authorRémi Lapeyre <remi.lapeyre@henki.fr>2019-05-27 13:43:45 (GMT)
committerCheryl Sabella <cheryl.sabella@gmail.com>2019-05-27 13:43:45 (GMT)
commit674ee1260025ff36f27e5d70ff6b66e3aab880bf (patch)
tree454d232beffc625bac7a51a9b2ae5e63818e774a /Doc/library/urllib.parse.rst
parent1f39c28e489cca0397fc4c3675d13569318122ac (diff)
downloadcpython-674ee1260025ff36f27e5d70ff6b66e3aab880bf.zip
cpython-674ee1260025ff36f27e5d70ff6b66e3aab880bf.tar.gz
cpython-674ee1260025ff36f27e5d70ff6b66e3aab880bf.tar.bz2
bpo-35397: Remove deprecation and document urllib.parse.unwrap (GH-11481)
Diffstat (limited to 'Doc/library/urllib.parse.rst')
-rw-r--r--Doc/library/urllib.parse.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst
index f993628..49276da 100644
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -370,6 +370,13 @@ or on combining URL components into a URL string.
.. versionchanged:: 3.2
Result is a structured object rather than a simple 2-tuple.
+.. function:: unwrap(url)
+
+ Extract the url from a wrapped URL (that is, a string formatted as
+ ``<URL:scheme://host/path>``, ``<scheme://host/path>``, ``URL:scheme://host/path``
+ or ``scheme://host/path``). If *url* is not a wrapped URL, it is returned
+ without changes.
+
.. _parsing-ascii-encoded-bytes:
Parsing ASCII Encoded Bytes