Skip to content

Commit 2ef65f3

Browse files
Fix misleading docsting of shelve.open(). (GH-6427)
The protocol parameter can be any protocol supported by the pickle module.
1 parent 9c463ec commit 2ef65f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/shelve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def open(filename, flag='c', protocol=None, writeback=False):
235235
filename and more than one file may be created. The optional flag
236236
parameter has the same interpretation as the flag parameter of
237237
dbm.open(). The optional protocol parameter specifies the
238-
version of the pickle protocol (0, 1, or 2).
238+
version of the pickle protocol.
239239
240240
See the module's __doc__ string for an overview of the interface.
241241
"""

0 commit comments

Comments
 (0)