[PATCH 05 of 11 py3] util: use pycompat url_unquote function
Augie Fackler
raf at durin42.com
Sun Oct 9 10:16:47 EDT 2016
# 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))
def __repr__(self):
attrs = []
More information about the Mercurial-devel
mailing list