( )⚙ D12288 posix: delete Python 2 posixfile()

This is an archive of the discontinued Mercurial Phabricator instance.

posix: delete Python 2 posixfile()
ClosedPublic

Authored by indygreg on Mar 2 2022, 6:30 PM.

Details

Summary

The comment no longer makes sense since the stdlib open() behaves
the way we want on Python 3. So it was removed.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

indygreg created this revision.Mar 2 2022, 6:30 PM

Please fix the comment to something like: Python 3 file objects set the initial position consistently for append mode and can be used directly or something like that. The current comment doesn't make sense without the context.

Alphare requested changes to this revision.Mar 3 2022, 5:47 AM
This revision now requires changes to proceed.Mar 3 2022, 5:47 AM
indygreg retitled this revision from posix: delete Python 2 support code to posix: delete Python 2 posixfile().Mar 3 2022, 11:09 AM
indygreg edited the summary of this revision. (Show Details)
indygreg updated this revision to Diff 32464.
Alphare accepted this revision.Mar 3 2022, 11:18 AM
This revision is now accepted and ready to land.Mar 3 2022, 11:18 AM
This revision was automatically updated to reflect the committed changes.