From 3c25b73eabb5a5ce53ae93273417c49f9c6ac5b8 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 9 Apr 2018 12:22:57 +0300 Subject: [PATCH] Fix misleading docsting of shelve.open(). The protocol parameter can be any protocol supported by the pickle module. --- Lib/shelve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/shelve.py b/Lib/shelve.py index 4a56c93ea01502..5d443a0fa8d4f1 100644 --- a/Lib/shelve.py +++ b/Lib/shelve.py @@ -235,7 +235,7 @@ def open(filename, flag='c', protocol=None, writeback=False): filename and more than one file may be created. The optional flag parameter has the same interpretation as the flag parameter of dbm.open(). The optional protocol parameter specifies the - version of the pickle protocol (0, 1, or 2). + version of the pickle protocol. See the module's __doc__ string for an overview of the interface. """