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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba99c5887286147925fb02141c274e5b4dc84f4e;p=thirdparty%2FPython%2Fcpython.git The new default protocol is two. --- diff --git a/Lib/shelve.py b/Lib/shelve.py index 67878db45f53..e6d6d4082730 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 = {}