This is an archive of the discontinued Mercurial Phabricator instance.

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
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Feb 7 2019, 9:06 AM
This revision was automatically updated to reflect the committed changes.