[PATCH 01 of 10 py3] ui: portably bytestring-ify url object
Pulkit Goyal
7895pulkit at gmail.com
Sun Mar 12 15:04:15 EDT 2017
On Mon, Mar 13, 2017 at 12:27 AM, Augie Fackler <raf at durin42.com> wrote:
> # 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
>
> probably we can use bytes() instead of str() which is present in Python
2.6, 2.7 and 3.5.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170313/fb7bf5b7/attachment.html>
More information about the Mercurial-devel
mailing list