Skip to content

Commit 558e7e4

Browse files
Fix misleading docsting of shelve.open(). (GH-6427)
The protocol parameter can be any protocol supported by the pickle module. (cherry picked from commit 2ef65f3) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent b571958 commit 558e7e4

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)