summaryrefslogtreecommitdiffstats
path: root/Lib/shelve.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-02-03 04:19:10 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-02-03 04:19:10 (GMT)
commit85602268dc9d57b8965b619dd313868ebe4b9b8f (patch)
tree2f154eb4bdc4f7d2492491e7ff0e71798cdfca29 /Lib/shelve.py
parentf6e18066be2d8e60ee46b103ebd89124a62fac32 (diff)
downloadcpython-85602268dc9d57b8965b619dd313868ebe4b9b8f.zip
cpython-85602268dc9d57b8965b619dd313868ebe4b9b8f.tar.gz
cpython-85602268dc9d57b8965b619dd313868ebe4b9b8f.tar.bz2
The default shelve pickle protocol should have been 3.
Diffstat (limited to 'Lib/shelve.py')
-rw-r--r--Lib/shelve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shelve.py b/Lib/shelve.py
index cf6dac6..fb2fa93 100644
--- a/Lib/shelve.py
+++ b/Lib/shelve.py
@@ -84,7 +84,7 @@ class Shelf(collections.MutableMapping):
keyencoding="utf-8"):
self.dict = dict
if protocol is None:
- protocol = 2
+ protocol = 3
self._protocol = protocol
self.writeback = writeback
self.cache = {}