This is an archive of the discontinued Mercurial Phabricator instance.

py3: use io.BytesIO directly
ClosedPublic

Authored by indygreg on Mar 1 2022, 7:35 PM.

Details

Summary

Previously, pycompat.bytesio and pycompat.stringio referred to
io.BytesIO. And util.bytesio and util.stringio aliased the pycompat
symbols.

This commit switches everything to use io.BytesIO directly. util.bytesio
and util.stringio still exist to provide backwards compatibility, as
they were the preferred symbols.

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.Mar 1 2022, 7:35 PM
Alphare accepted this revision.Mar 2 2022, 5:49 AM
This revision is now accepted and ready to land.Mar 2 2022, 5:49 AM
indygreg updated this revision to Diff 32460.Mar 3 2022, 11:00 AM
This revision was automatically updated to reflect the committed changes.