[Python-checkins] Fix misleading docsting of shelve.open(). (GH-6427)

Miss Islington (bot) webhook-mailer at python.org
Mon Apr 9 11:06:29 EDT 2018


https://github.com/python/cpython/commit/2d01ac59178028ba091a5da9d3ac5d1d54dfc38f
commit: 2d01ac59178028ba091a5da9d3ac5d1d54dfc38f
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-04-09T08:06:25-07:00
summary:

Fix misleading docsting of shelve.open(). (GH-6427)


The protocol parameter can be any protocol supported by the
pickle module.
(cherry picked from commit 2ef65f346a5e829a886c075f519e3a49a2ebbde7)

Co-authored-by: Serhiy Storchaka <storchaka at gmail.com>

files:
M Lib/shelve.py

diff --git a/Lib/shelve.py b/Lib/shelve.py
index 581baf1e6f3f..dfd7316b7f83 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.
     """



More information about the Python-checkins mailing list