summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-02-10 20:41:56 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-02-10 20:41:56 (GMT)
commitba99c5887286147925fb02141c274e5b4dc84f4e (patch)
tree689d3e4ed7d8d226516bb45b1b4ad5fe28a3bb88
parenta941d2df90cdfdff9169bc040964adb7022bc905 (diff)
downloadcpython-ba99c5887286147925fb02141c274e5b4dc84f4e.zip
cpython-ba99c5887286147925fb02141c274e5b4dc84f4e.tar.gz
cpython-ba99c5887286147925fb02141c274e5b4dc84f4e.tar.bz2
The new default protocol is two.
-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 = {}