[PATCH 4 of 6] i18n: use unicode literals to appease Python 3

Martijn Pieters mj at zopatista.com
Mon Jun 6 11:47:59 EDT 2016


On 4 June 2016 at 07:00, Yuya Nishihara <yuya at tcha.org> wrote:
> I haven't read the whole series yet, but I'm surprised that we'll need a bunch
> of unicode strings to get along with Python 3. Even __doc__ can't be bytes.

The __doc__ issue is avoided by ignoring triple-quoted strings in the
tokeniser. So 'string literal' becomes b'string literal', but
'''string literal''' is untouched.


-- 
Martijn Pieters


More information about the Mercurial-devel mailing list