]> granicus.if.org Git - python/commitdiff
Fix misleading docsting of shelve.open(). (GH-6427)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 9 Apr 2018 14:16:01 +0000 (17:16 +0300)
committerGitHub <noreply@github.com>
Mon, 9 Apr 2018 14:16:01 +0000 (17:16 +0300)
The protocol parameter can be any protocol supported by the
pickle module.

Lib/shelve.py

index 4a56c93ea01502b81ccefca69c070f47c96a454c..5d443a0fa8d4f14c56b1ca2497a621f0d02683d7 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.
     """