]> granicus.if.org Git - python/commitdiff
The new default protocol is two.
authorRaymond Hettinger <python@rcn.com>
Sun, 10 Feb 2008 20:41:56 +0000 (20:41 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 10 Feb 2008 20:41:56 +0000 (20:41 +0000)
Lib/shelve.py

index 67878db45f53e0a084b3602008ae538f09c375d6..e6d6d408273091110cf9e5c101c5e0ea838037f4 100644 (file)
@@ -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 = {}