( )⚙ D272 bundle2: convert ints to strings using pycompat.bytestring()

This is an archive of the discontinued Mercurial Phabricator instance.

bundle2: convert ints to strings using pycompat.bytestring()
ClosedPublic

Authored by durin42 on Aug 8 2017, 3:49 PM.

Details

Summary

Fixes some Python 3 regressions.

We don't use %d here because the part id is actually an
Optional[int]. It should always be initialized to a non-None value by
the time this code executes, but we shouldn't blindly depend on that
being the case.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

durin42 created this revision.Aug 8 2017, 3:49 PM
quark accepted this revision.Aug 9 2017, 1:13 AM
This revision was automatically updated to reflect the committed changes.