( )⚙ D2109 py3: make sure we return str from __repr__

This is an archive of the discontinued Mercurial Phabricator instance.

py3: make sure we return str from __repr__
ClosedPublic

Authored by pulkit on Feb 11 2018, 7:38 AM.

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.Feb 11 2018, 7:38 AM
durin42 accepted this revision.Feb 11 2018, 9:04 AM
This revision is now accepted and ready to land.Feb 11 2018, 9:04 AM
yuja requested changes to this revision.Feb 11 2018, 9:05 AM
yuja added a subscriber: yuja.
yuja added inline comments.
mercurial/match.py
460

Maybe you know, '%r' % [bytes, ...] is incompatible across python versions,
so it's probably better to build a repr string in bytes, and convert it
to unicode.

See f0827211eb1f and fc44c2657dc5 for example.

This revision now requires changes to proceed.Feb 11 2018, 9:05 AM
pulkit updated this revision to Diff 5478.Feb 12 2018, 3:47 AM
pulkit edited the summary of this revision. (Show Details)Feb 12 2018, 3:55 AM
yuja accepted this revision.Feb 12 2018, 5:43 AM
This revision is now accepted and ready to land.Feb 12 2018, 5:43 AM
This revision was automatically updated to reflect the committed changes.