This is an archive of the discontinued Mercurial Phabricator instance.

py3: use pycompat.bytestr to convert _b85chars to bytes
ClosedPublic

Authored by pulkit on Feb 7 2018, 4:01 AM.

Details

Summary

The tranformer does append b'' to the value and make that a bytes but bytes in
Python 3 returns the ascii value on getting characters using indexing.
Characters of this string are queried using indexing multiple times in the file
and to support that we use pycompat.bytestr which returns the bytechrs using
indexing.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Feb 7 2018, 4:01 AM
durin42 accepted this revision.Feb 7 2018, 6:14 AM
This revision is now accepted and ready to land.Feb 7 2018, 6:14 AM
This revision was automatically updated to reflect the committed changes.