This is an archive of the discontinued Mercurial Phabricator instance.

py3: use pycompat.bytestr instead of str
ClosedPublic

Authored by pulkit on Mar 4 2018, 12:27 PM.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Mar 4 2018, 12:27 PM
yuja requested changes to this revision.Mar 4 2018, 1:02 PM
yuja added a subscriber: yuja.
yuja added inline comments.
mercurial/context.py
436 ↗(On Diff #6562)

Nit: could be %d.

mercurial/dispatch.py
993 ↗(On Diff #6562)

Better to use forcebytestr() here because we are blaming a bad extension
which may put anything into testedwith.

mercurial/revlog.py
2470 ↗(On Diff #6562)

Perhaps bytes() is more appropriate here. I think this is just making a sort of bytes
immutable.

This revision now requires changes to proceed.Mar 4 2018, 1:02 PM
yuja accepted this revision.Mar 4 2018, 3:16 PM
This revision is now accepted and ready to land.Mar 4 2018, 3:16 PM
This revision was automatically updated to reflect the committed changes.