This is an archive of the discontinued Mercurial Phabricator instance.

py3: use stringutil.pprint() to print NoneType
ClosedPublic

Authored by pulkit on Jun 25 2018, 6:33 AM.

Details

Summary

Before this patch, when running test-debugcommands.t, we get a TypeError because
NoneType can't be converted into bytes. This patch uses stringutil.pprint() to
print the ui._colormode.

We are now close to getting test-debugcommands.t passing on Python 3.

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

pulkit created this revision.Jun 25 2018, 6:33 AM
This revision was automatically updated to reflect the committed changes.