( )⚙ D12250 pycompat: remove large Python 2 block

This is an archive of the discontinued Mercurial Phabricator instance.

pycompat: remove large Python 2 block
ClosedPublic

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

Details

Summary

We no longer support Python 2. So we can delete its compatibility
code and remove the conditional and dedent the Python 3 code.

In order to make the linter happy, we had to inline imports in the
stanza at the top of the file.

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