summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/shelve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shelve.py b/Lib/shelve.py
index 67878db..e6d6d40 100644
--- a/Lib/shelve.py
+++ b/Lib/shelve.py
@@ -75,7 +75,7 @@ class Shelf(collections.MutableMapping):
keyencoding="utf-8"):
self.dict = dict
if protocol is None:
- protocol = 0
+ protocol = 2
self._protocol = protocol
self.writeback = writeback
self.cache = {}