This is an archive of the discontinued Mercurial Phabricator instance.

py3: use .startswith() instead of bytes[0]
ClosedPublic

Authored by pulkit on Jun 11 2019, 8:50 AM.

Details

Summary

Doing bytes[0] will return the ascii value of that position which breaks
comparison with a bytechar.

This makes test-absorb.t work again on py3.

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.Jun 11 2019, 8:50 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.