HomePhabricator

encoding: use raw strings for encoding arguments

Authored by indygreg.

Description

encoding: use raw strings for encoding arguments

This prevents the internals of Python from coercing a unicode to str
on Python 2 and makes tests run with HGUNICODEPEDANTRY=1 a lot
happier.

Differential Revision: https://phab.mercurial-scm.org/D6051

Details

Committed
indygregMar 2 2019, 4:07 PM
Differential Revision
D6051: encoding: use raw strings for encoding arguments
Parents
rHGddb174511f1b: revsetlang: use sysbytes() instead of blind encode()
Branches
Unknown
Tags
Unknown