From ba99c5887286147925fb02141c274e5b4dc84f4e Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 10 Feb 2008 20:41:56 +0000 Subject: [PATCH] The new default protocol is two. --- Lib/shelve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/shelve.py b/Lib/shelve.py index 67878db45f5..e6d6d408273 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 = {}