[PATCH 1 of 2] py3: use pycompat.fsencode() to convert __file__ to bytes

Kevin Bullock kbullock+mercurial at ringworld.org
Fri Feb 24 15:47:48 EST 2017


> On Feb 23, 2017, at 05:59, Pulkit Goyal <7895pulkit at gmail.com> wrote:
> 
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit at gmail.com>
> # Date 1487596242 -19800
> #      Mon Feb 20 18:40:42 2017 +0530
> # Node ID 80693cfda5a63dee28cf9e63cf0e8cef3f27f23a
> # Parent  37ab9e20991c1d39014db8297065357fbded0213
> py3: use pycompat.fsencode() to convert __file__ to bytes
> 
> __file__ returns unicodes on Python 3. This patch uses pycompat.fsenocde() to

You had a typo here, which I've fixed in-flight and rebased the rest of the queue on top of.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock



More information about the Mercurial-devel mailing list