ui: portably bytestring-ify url object
authorAugie Fackler <augie@google.com>
Sun, 12 Mar 2017 01:59:23 -0500
changeset 31350 2eee8ad77726
parent 31349 719e64bf9ec2
child 31351 5da0c7888dc4
ui: portably bytestring-ify url object
mercurial/ui.py
--- a/mercurial/ui.py	Sun Mar 12 00:47:39 2017 -0500
+++ b/mercurial/ui.py	Sun Mar 12 01:59:23 2017 -0500
@@ -1616,7 +1616,7 @@
 
         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.