]> granicus.if.org Git - python/commitdiff
Fix pickletools doc for NEWFALSE. (GH-9432)
authorKrzysztof Wroblewski <krzysiek.wr@gmail.com>
Sat, 22 Sep 2018 15:13:53 +0000 (16:13 +0100)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 22 Sep 2018 15:13:53 +0000 (18:13 +0300)
Also make docs for NEWFALSE and NEWTRUE more consistent
with docs for other opcodes.

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.