commit | ba99c5887286147925fb02141c274e5b4dc84f4e | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sun Feb 10 20:41:56 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sun Feb 10 20:41:56 2008 +0000 |
tree | 689d3e4ed7d8d226516bb45b1b4ad5fe28a3bb88 | |
parent | a941d2df90cdfdff9169bc040964adb7022bc905 [diff] [blame] |
The new default protocol is two.
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 @@ keyencoding="utf-8"): self.dict = dict if protocol is None: - protocol = 0 + protocol = 2 self._protocol = protocol self.writeback = writeback self.cache = {}