]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix pickletools doc for NEWFALSE. (GH-9432)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 22 Sep 2018 15:27:47 +0000 (08:27 -0700)
committerGitHub <noreply@github.com>
Sat, 22 Sep 2018 15:27:47 +0000 (08:27 -0700)
Also make docs for NEWFALSE and NEWTRUE more consistent
with docs for other opcodes.
(cherry picked from commit 488cfb78c8b81075942b5e4cc9630e7a6dd9dc28)

Co-authored-by: Krzysztof Wroblewski <krzysiek.wr@gmail.com>
Lib/pickletools.py

index 5e129b5b56373b8eb13355d7b58caabc1e1282a8..c0415ec46b768f53decb775e382e914fcd1bb967 100644 (file)
@@ -1354,9 +1354,7 @@ opcodes = [
       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',
@@ -1364,9 +1362,7 @@ opcodes = [
       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.