Page MenuHomePhabricator

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

Authored by pulkit on Feb 7 2019, 9:06 AM.

Details

Summary

This is because bytes[0] will return the ascii value and comparison will fail.

This makes test-commit-interactive-curses.t pass on Python 3.

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 2019, 9:06 AM
This revision was automatically updated to reflect the committed changes.