changeset 34089: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 f55769e41803
children 7bbc4e113e5f
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Sun Sep 03 17:37:17 2017 +0900
+++ b/mercurial/util.py	Sun Sep 03 17:51:23 2017 +0900
@@ -2804,6 +2804,7 @@
             if v is not None:
                 setattr(self, a, urlreq.unquote(v))
 
+    @encoding.strmethod
     def __repr__(self):
         attrs = []
         for a in ('scheme', 'user', 'passwd', 'host', 'port', 'path',