diff options
author | Raymond Hettinger <python@rcn.com> | 2008-02-10 20:41:56 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-02-10 20:41:56 (GMT) |
commit | ba99c5887286147925fb02141c274e5b4dc84f4e (patch) | |
tree | 689d3e4ed7d8d226516bb45b1b4ad5fe28a3bb88 /Lib/shelve.py | |
parent | a941d2df90cdfdff9169bc040964adb7022bc905 (diff) | |
download | cpython-ba99c5887286147925fb02141c274e5b4dc84f4e.zip cpython-ba99c5887286147925fb02141c274e5b4dc84f4e.tar.gz cpython-ba99c5887286147925fb02141c274e5b4dc84f4e.tar.bz2 |
The new default protocol is two.
Diffstat (limited to 'Lib/shelve.py')
-rw-r--r-- | Lib/shelve.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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 = {} |