]> granicus.if.org Git - python/commitdiff
Fix misleading docsting of shelve.open(). (GH-6427)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Apr 2018 15:06:25 +0000 (08:06 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Apr 2018 15:06:25 +0000 (08:06 -0700)
The protocol parameter can be any protocol supported by the
pickle module.
(cherry picked from commit 2ef65f346a5e829a886c075f519e3a49a2ebbde7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/shelve.py

index 581baf1e6f3fb451fb15e8c300784a4eb358927d..dfd7316b7f838c4c0f982a75c2278d6c7eaf44df 100644 (file)
@@ -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.
     """