Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 30328:2d996af02fd8
util: use pycompat urlunquote function
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 09 Oct 2016 09:03:10 -0400 |
parents | 4b1af1c867fa |
children | dadb00a0ec0f |
comparison
equal
deleted
inserted
replaced
30327:e0d9b6aab4c5 | 30328:2d996af02fd8 |
---|---|
2470 # leave the query string escaped | 2470 # leave the query string escaped |
2471 for a in ('user', 'passwd', 'host', 'port', | 2471 for a in ('user', 'passwd', 'host', 'port', |
2472 'path', 'fragment'): | 2472 'path', 'fragment'): |
2473 v = getattr(self, a) | 2473 v = getattr(self, a) |
2474 if v is not None: | 2474 if v is not None: |
2475 setattr(self, a, pycompat.urlparse.unquote(v)) | 2475 setattr(self, a, pycompat.urlunquote(v)) |
2476 | 2476 |
2477 def __repr__(self): | 2477 def __repr__(self): |
2478 attrs = [] | 2478 attrs = [] |
2479 for a in ('scheme', 'user', 'passwd', 'host', 'port', 'path', | 2479 for a in ('scheme', 'user', 'passwd', 'host', 'port', 'path', |
2480 'query', 'fragment'): | 2480 'query', 'fragment'): |