( )⚙ D3328 py3: use b"%d" instead of str() to convert int to bytes

This is an archive of the discontinued Mercurial Phabricator instance.

py3: use b"%d" instead of str() to convert int to bytes
ClosedPublic

Authored by pulkit on Apr 13 2018, 4:48 PM.

Details

Summary

While I was here, I added 'and None' to suppress return values of .write()
calls.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Apr 13 2018, 4:48 PM
durin42 accepted this revision.Apr 13 2018, 6:12 PM
This revision is now accepted and ready to land.Apr 13 2018, 6:12 PM
This revision was automatically updated to reflect the committed changes.