Skip to content

Commit 2c3492a

Browse files
jaracobenjaminp
authored andcommitted
Add unquote_to_bytes to moved urllib.parse. Fixes #171. (#172)
1 parent 490148d commit 2c3492a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

documentation/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ and :mod:`py2:urllib`:
722722
* :func:`py2:urllib.splittag`
723723
* :func:`py2:urllib.splituser`
724724
* :func:`py2:urllib.splitvalue`
725-
* :func:`py2:urllib.unquote`
725+
* :func:`py2:urllib.unquote` (also exposed as :func:`py3:urllib.parse.unquote_to_bytes`)
726726
* :func:`py2:urllib.unquote_plus`
727727
* :func:`py2:urllib.urlencode`
728728

six.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ class Module_six_moves_urllib_parse(_LazyModule):
340340
MovedAttribute("quote_plus", "urllib", "urllib.parse"),
341341
MovedAttribute("unquote", "urllib", "urllib.parse"),
342342
MovedAttribute("unquote_plus", "urllib", "urllib.parse"),
343+
MovedAttribute("unquote_to_bytes", "urllib", "urllib.parse", "unquote", "unquote_to_bytes"),
343344
MovedAttribute("urlencode", "urllib", "urllib.parse"),
344345
MovedAttribute("splitquery", "urllib", "urllib.parse"),
345346
MovedAttribute("splittag", "urllib", "urllib.parse"),

0 commit comments

Comments
 (0)