[PATCH 01 of 10 py3] ui: portably bytestring-ify url object
Augie Fackler
raf at durin42.com
Sun Mar 12 18:57:41 UTC 2017
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1489301963 18000
# Sun Mar 12 01:59:23 2017 -0500
# Node ID 164bdb3f2b81be655f407cc78faf435d7868d286
# Parent 719e64bf9ec2d7b8e86b6550a5d193b3c67944d1
ui: portably bytestring-ify url object
diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -1616,7 +1616,7 @@ class path(object):
self.name = name
self.rawloc = rawloc
- self.loc = str(u)
+ self.loc = '%s' % u
# When given a raw location but not a symbolic name, validate the
# location is valid.
More information about the Mercurial-devel
mailing list