changeset 31359:2eee8ad77726

ui: portably bytestring-ify url object
author Augie Fackler <augie@google.com>
date Sun, 12 Mar 2017 01:59:23 -0500
parents 719e64bf9ec2
children 5da0c7888dc4
files mercurial/ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.