From patchwork Sun Sep 3 14:36:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [7,of,8] py3: fix repr(util.url) to return system string From: Yuya Nishihara X-Patchwork-Id: 23646 Message-Id: <2f19734c56c0227e004a.1504449385@mimosa> To: mercurial-devel@mercurial-scm.org Date: Sun, 03 Sep 2017 23:36:25 +0900 # HG changeset patch # User Yuya Nishihara # Date 1504428683 -32400 # Sun Sep 03 17:51:23 2017 +0900 # Node ID 2f19734c56c0227e004a849e8037378f9d930e7d # Parent 6f837717bec80a273aa7263d1d2af0f68ff04237 py3: fix repr(util.url) to return system string This is required on Python 3. diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -2804,6 +2804,7 @@ class url(object): 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',