mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Getting rid of cPickle. Mmm, feels good!
This commit is contained in:
parent
be6fe5476c
commit
99603b0c1e
22 changed files with 38 additions and 5846 deletions
|
|
@ -1,9 +1,5 @@
|
|||
import unittest
|
||||
import pickle
|
||||
try:
|
||||
import cPickle
|
||||
except ImportError:
|
||||
cPickle = None
|
||||
import pickletools
|
||||
import copy_reg
|
||||
|
||||
|
|
@ -12,8 +8,6 @@ from test.test_support import TestFailed, TESTFN, run_with_locale
|
|||
# Tests that try a number of pickle protocols should have a
|
||||
# for proto in protocols:
|
||||
# kind of outer loop.
|
||||
if cPickle is not None:
|
||||
assert pickle.HIGHEST_PROTOCOL == cPickle.HIGHEST_PROTOCOL == 2
|
||||
protocols = range(pickle.HIGHEST_PROTOCOL + 1)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue