Page MenuHomePhabricator

histedit: add missing b prefix to a string
ClosedPublic

Authored by spectral on Apr 1 2020, 5:26 PM.

Details

Summary

If i18n is disabled (such as via HGPLAIN=1), _() doesn't convert from str to
bytes, so this raises a TypeError 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

spectral created this revision.Apr 1 2020, 5:26 PM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.