]> 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>
Wed, 26 Sep 2018 05:19:08 +0000 (22:19 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Sep 2018 05:19:08 +0000 (22:19 -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 8486cbf84368786546fff02d918c8c28a1b2f3f2..ed8bee36e8c586abc87770cbcf4237e3d91fb9fa 100644 (file)
@@ -1325,9 +1325,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',
@@ -1335,9 +1333,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.