This is an archive of the discontinued Mercurial Phabricator instance.

py3: add __bytes__() for mq.patchheader and make sure __str__ returns str
ClosedPublic

Authored by pulkit on Feb 5 2018, 3:23 AM.

Details

Summary

Before this patch, str() function for mq.patchheader class return bytes
which is not str on Python 3. So let's move that logic to bytes() and for
str() convert the return value of bytes() to str.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Feb 5 2018, 3:23 AM
yuja accepted this revision.Feb 5 2018, 9:07 AM
This revision is now accepted and ready to land.Feb 5 2018, 9:07 AM
This revision was automatically updated to reflect the committed changes.