( )⚙ D9433 extensions: avoid a crash when the version isn't properly byteified on py3

This is an archive of the discontinued Mercurial Phabricator instance.

extensions: avoid a crash when the version isn't properly byteified on py3
ClosedPublic

Authored by mharbison72 on Nov 27 2020, 11:48 PM.

Details

Summary

We already force bytestr on the testedwith and buglink attributes in
dispatch.py when generating a bug report with a similar comment about not
every extension being ported to py3. We should do the same here, so the
function can be properly typed.

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.