Page MenuHomePhabricator

bundle2: use os.SEEK_* constants
ClosedPublic

Authored by indygreg on Nov 11 2017, 9:50 PM.

Details

Summary

Constants make code easier to read than magic numbers.

I also threw in an explicit argument in a caller to further
increase code comprehension.

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

indygreg created this revision.Nov 11 2017, 9:50 PM
dlax accepted this revision.Nov 13 2017, 3:26 AM
yuja accepted this revision.Nov 13 2017, 9:08 AM
This revision is now accepted and ready to land.Nov 13 2017, 9:08 AM
This revision was automatically updated to reflect the committed changes.