This is an archive of the discontinued Mercurial Phabricator instance.

py3: pass a bytes value for "msg" to nouideprecwarn()
ClosedPublic

Authored by dlax on Nov 13 2019, 3:16 AM.

Details

Summary

That function formats "msg" with the "version" value. On Python 3, this
leads to "TypeError: can only concatenate str (not "bytes") to str".

Also eliminate spurious strings concatenation in single-line
declarations.

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

dlax created this revision.Nov 13 2019, 3:16 AM
pulkit accepted this revision.Nov 13 2019, 8:11 AM
This revision is now accepted and ready to land.Nov 13 2019, 8:11 AM
This revision was automatically updated to reflect the committed changes.