Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 34072:30535fe47e78
py3: fix repr(util.url) to return system string
This is required on Python 3.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 03 Sep 2017 17:51:23 +0900 |
parents | ca6a3852daf0 |
children | 1104718fb090 |
comparison
equal
deleted
inserted
replaced
34071:f55769e41803 | 34072:30535fe47e78 |
---|---|
2802 'path', 'fragment'): | 2802 'path', 'fragment'): |
2803 v = getattr(self, a) | 2803 v = getattr(self, a) |
2804 if v is not None: | 2804 if v is not None: |
2805 setattr(self, a, urlreq.unquote(v)) | 2805 setattr(self, a, urlreq.unquote(v)) |
2806 | 2806 |
2807 @encoding.strmethod | |
2807 def __repr__(self): | 2808 def __repr__(self): |
2808 attrs = [] | 2809 attrs = [] |
2809 for a in ('scheme', 'user', 'passwd', 'host', 'port', 'path', | 2810 for a in ('scheme', 'user', 'passwd', 'host', 'port', 'path', |
2810 'query', 'fragment'): | 2811 'query', 'fragment'): |
2811 v = getattr(self, a) | 2812 v = getattr(self, a) |