From 2da1c822bcbb5ba08d19a047016b8eb5e7867cbb Mon Sep 17 00:00:00 2001 From: Krzysztof Wroblewski Date: Wed, 19 Sep 2018 23:05:35 +0100 Subject: [PATCH 1/2] Fix pickletools doc for NEWFALSE --- Lib/pickletools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/pickletools.py b/Lib/pickletools.py index 8486cbf8436878..6fbc45fc38231b 100644 --- a/Lib/pickletools.py +++ b/Lib/pickletools.py @@ -1335,7 +1335,7 @@ def __init__(self, name, code, arg, stack_before=[], stack_after=[pybool], proto=2, - doc="""True. + doc="""False. Push False onto the stack."""), From 7ef5167a4387c8883fc5b16c671d8f9d54c3f691 Mon Sep 17 00:00:00 2001 From: Krzysztof Wroblewski Date: Sat, 22 Sep 2018 15:41:01 +0100 Subject: [PATCH 2/2] More consistent docs --- Lib/pickletools.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Lib/pickletools.py b/Lib/pickletools.py index 6fbc45fc38231b..ed8bee36e8c586 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="""False. - - Push False onto the stack."""), + doc="Push False onto the stack."), # Ways to spell Unicode strings.