From: Raymond Hettinger Date: Sun, 10 Feb 2008 20:41:56 +0000 (+0000) Subject: The new default protocol is two. X-Git-Tag: v3.0a3~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba99c5887286147925fb02141c274e5b4dc84f4e;p=python The new default protocol is two. --- diff --git a/Lib/shelve.py b/Lib/shelve.py index 67878db45f..e6d6d40827 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 = {}