Skip to content

Commit fef3a92

Browse files
Fix pickletools doc for NEWFALSE. (GH-9432)
Also make docs for NEWFALSE and NEWTRUE more consistent with docs for other opcodes. (cherry picked from commit 488cfb7) Co-authored-by: Krzysztof Wroblewski <krzysiek.wr@gmail.com>
1 parent 10be1d3 commit fef3a92

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

Lib/pickletools.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,19 +1048,15 @@ def __init__(self, name, code, arg,
10481048
stack_before=[],
10491049
stack_after=[pybool],
10501050
proto=2,
1051-
doc="""True.
1052-
1053-
Push True onto the stack."""),
1051+
doc="Push True onto the stack."),
10541052

10551053
I(name='NEWFALSE',
10561054
code='\x89',
10571055
arg=None,
10581056
stack_before=[],
10591057
stack_after=[pybool],
10601058
proto=2,
1061-
doc="""True.
1062-
1063-
Push False onto the stack."""),
1059+
doc="Push False onto the stack."),
10641060

10651061
# Ways to spell Unicode strings.
10661062

0 commit comments

Comments
 (0)