-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: PY3 Remove cPickle #25956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLN: PY3 Remove cPickle #25956
Conversation
Codecov Report
@@ Coverage Diff @@
## master #25956 +/- ##
==========================================
+ Coverage 91.82% 91.82% +<.01%
==========================================
Files 175 175
Lines 52581 52571 -10
==========================================
- Hits 48280 48274 -6
+ Misses 4301 4297 -4
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #25956 +/- ##
==========================================
+ Coverage 91.82% 91.82% +<.01%
==========================================
Files 175 175
Lines 52581 52571 -10
==========================================
- Hits 48280 48274 -6
+ Misses 4301 4297 -4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm aside from a couple small comments
pandas/io/pickle.py
Outdated
@@ -140,15 +142,15 @@ def read_pickle(path, compression='infer'): | |||
path = _stringify_path(path) | |||
f, fh = _get_handle(path, 'rb', compression=compression, is_text=False) | |||
|
|||
# 1) try with cPickle | |||
# 1) try with Pickle | |||
# 2) try with the compat pickle to handle subclass changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor but I suppose we don't need a three step comment here anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically there's still a 3 step process, "compat pickle" in this case refers to compatibility with older versions of pandas and not PY2/3 compat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will clarify this comment though.
lgtm. @mroeschke If you want to clarify the above comment, pls do so. merge on green. |
git diff upstream/master -u -- "*.py" | flake8 --diff
Remove
cPickle
. Removes somecPickle
tests.