Patchwork [01,of,10,py3] ui: portably bytestring-ify url object

login
register
mail settings
Submitter Augie Fackler
Date March 12, 2017, 6:57 p.m.
Message ID <164bdb3f2b81be655f40.1489345061@augie-macbookair2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/19202/
State Accepted
Headers show

Comments

Augie Fackler - March 12, 2017, 6:57 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1489301963 18000
#      Sun Mar 12 01:59:23 2017 -0500
# Node ID 164bdb3f2b81be655f407cc78faf435d7868d286
# Parent  719e64bf9ec2d7b8e86b6550a5d193b3c67944d1
ui: portably bytestring-ify url object

Patch

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.