This is an archive of the discontinued Mercurial Phabricator instance.

py3: don't index into bytes in phabricator's _tokenize()
ClosedPublic

Authored by Kwan on Oct 17 2019, 5:48 PM.

Details

Summary

phabreading a stack using hg phabread :D1234 under py3 will currently die
with a KeyError because it will index into b':D1234' and return 58 instead
of b':' as a token.

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

Kwan created this revision.Oct 17 2019, 5:48 PM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.