Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba99c58

Browse files
committed
The new default protocol is two.
1 parent a941d2d commit ba99c58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/shelve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, dict, protocol=None, writeback=False,
7575
keyencoding="utf-8"):
7676
self.dict = dict
7777
if protocol is None:
78-
protocol = 0
78+
protocol = 2
7979
self._protocol = protocol
8080
self.writeback = writeback
8181
self.cache = {}

0 commit comments

Comments
 (0)