py3: add Python 3 output for test-flagprocessor.t
ClosedPublic

Authored by indygreg on Feb 2 2019, 4:13 PM.

Details

Summary

The exception is being generated from ui.traceback(), which
simply calls traceback.format_*() to format exceptions. Since
the output from the standard library has changed, there is
seemingly not much we can do about it. So this commit adds
conditional output depending on the Python version.

I'm not thrilled about b'' appearing in user-facing output.
Can we do something better here?

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.