[Python-checkins] Fix pickletools doc for NEWFALSE. (GH-9432)

Serhiy Storchaka webhook-mailer at python.org
Sat Sep 22 11:13:57 EDT 2018


https://github.com/python/cpython/commit/488cfb78c8b81075942b5e4cc9630e7a6dd9dc28
commit: 488cfb78c8b81075942b5e4cc9630e7a6dd9dc28
branch: master
author: Krzysztof Wroblewski <krzysiek.wr at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-09-22T18:13:53+03:00
summary:

Fix pickletools doc for NEWFALSE. (GH-9432)

Also make docs for NEWFALSE and NEWTRUE more consistent
with docs for other opcodes.

files:
M Lib/pickletools.py

diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index 8486cbf84368..ed8bee36e8c5 100644
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -1325,9 +1325,7 @@ def __init__(self, name, code, arg,
       stack_before=[],
       stack_after=[pybool],
       proto=2,
-      doc="""True.
-
-      Push True onto the stack."""),
+      doc="Push True onto the stack."),
 
     I(name='NEWFALSE',
       code='\x89',
@@ -1335,9 +1333,7 @@ def __init__(self, name, code, arg,
       stack_before=[],
       stack_after=[pybool],
       proto=2,
-      doc="""True.
-
-      Push False onto the stack."""),
+      doc="Push False onto the stack."),
 
     # Ways to spell Unicode strings.
 



More information about the Python-checkins mailing list