( )⚙ D12249 py3: use pickle directly

This is an archive of the discontinued Mercurial Phabricator instance.

py3: use pickle directly
ClosedPublic

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

Details

Summary

pycompat.pickle abstracted over the different pickle modules in
Python 2 and 3. Now that we're Python 3 only, it is safe to use the
pickle module directly. So this commit does that.

As part of this we remove the rules from check-code.py that were
forbidden direct pickle module use.

We retain the util.pickle symbol for backwards compatibility, just
in case some extensions were using it.

Diff Detail

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

Event Timeline

indygreg created this revision.Mar 1 2022, 7:35 PM
indygreg updated this revision to Diff 32335.Mar 1 2022, 11:29 PM
Alphare accepted this revision.Mar 2 2022, 5:45 AM
This revision is now accepted and ready to land.Mar 2 2022, 5:45 AM
This revision was automatically updated to reflect the committed changes.