[PATCH 2 of 2] py3: convert unicode paths given for hgweb config
Yuya Nishihara
yuya at tcha.org
Tue Apr 23 08:39:34 EDT 2019
On Mon, 22 Apr 2019 21:40:29 -0400, Ludovic Chabant wrote:
>
> > We'll probably need to fix the caller to not pass in a unicode. Can
> > you copy-paste the traceback?
>
> The caller is my own code. It's basically a custom version of the
> hgweb.wsgi file (see
> https://www.mercurial-scm.org/repo/hg/file/tip/contrib/hgweb.wsgi).
>
> If we want to be consistent with other things like the hgclient API,
> maybe we shouldn't be nice and encode the string for the caller, and
> instead reject anything that's not bytes?
Sounds good to reject unicodes explicitly.
More information about the Mercurial-devel
mailing list