diff options
Diffstat (limited to 'Lib/shelve.py')
-rw-r--r-- | Lib/shelve.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/Lib/shelve.py b/Lib/shelve.py index 697ae4f0f9..5aa8263f05 100644 --- a/Lib/shelve.py +++ b/Lib/shelve.py @@ -56,17 +56,8 @@ entries in the cache, and empty the cache (d.sync() also synchronizes the persistent dictionary on disk, if feasible). """ -# Try using cPickle and cStringIO if available. - -try: - from cPickle import Pickler, Unpickler -except ImportError: - from pickle import Pickler, Unpickler - -try: - from cStringIO import StringIO -except ImportError: - from StringIO import StringIO +from pickle import Pickler, Unpickler +from io import StringIO import UserDict import warnings |