[PATCH 05 of 11 py3] util: use pycompat url_unquote function

Yuya Nishihara yuya at tcha.org
Wed Nov 9 12:33:16 UTC 2016


On Sun, 09 Oct 2016 10:16:47 -0400, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1476018190 14400
> #      Sun Oct 09 09:03:10 2016 -0400
> # Node ID db2eae3cd5db193cd8922e93df2c6120ca9d7340
> # Parent  d333d64709648be4b31a7fcf25ff2505c0c4c78c
> util: use pycompat url_unquote function
> 
> diff --git a/mercurial/util.py b/mercurial/util.py
> --- a/mercurial/util.py
> +++ b/mercurial/util.py
> @@ -2470,7 +2470,7 @@ class url(object):
>                    'path', 'fragment'):
>              v = getattr(self, a)
>              if v is not None:
> -                setattr(self, a, pycompat.urlparse.unquote(v))
> +                setattr(self, a, pycompat.url_unquote(v))

Queued 4 and 5, thanks. I made s/url_unquote/urlunquote/g per our coding
style.


More information about the Mercurial-devel mailing list