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

Authored by pulkit.

Description

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

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.

Differential Revision: https://phab.mercurial-scm.org/D5879

Details

Committed
pulkitFeb 7 2019, 8:44 AM
Differential Revision
D5879: py3: use bytes.startswith() instead of comparing with bytes[0]
Parents
rHG635a12c53ea6: match: remove unused "exact" argument (API)
Branches
Unknown
Tags
Unknown