[wmltools] Fix Docstrings

docstrings of the keyboardinterrupt handler.
This commit is contained in:
Alexander Lacson 2022-02-16 11:40:16 +08:00 committed by Elvish_Hunter
parent 24098cb54a
commit 518becac59
2 changed files with 2 additions and 2 deletions

View file

@ -305,7 +305,7 @@ def convertor(linefilter, arglist, exclude):
def sigint_handler(signal, frame):
"""This function defines what happens when the SIGINT signal is encountered by pressing ctrl-c during runtime.
When ctrl-c is pressed, a one-line message is displayed and Python exits with Status 0, which refers to successful termination.
When ctrl-c is pressed, a one-line message is displayed and Python exits with Status 1.
This overrides Python's default behavior of displaying a traceback when ctrl-c is pressed.
"""
print ('Aborted by pressing ctrl-c')

View file

@ -269,7 +269,7 @@ def main():
def sigint_handler(signal, frame):
"""This function defines what happens when the SIGINT signal is encountered by pressing ctrl-c during runtime.
When ctrl-c is pressed, a one-line message is displayed and Python exits with Status 0, which refers to successful termination.
When ctrl-c is pressed, a one-line message is displayed and Python exits with Status 1.
This overrides Python's default behavior of displaying a traceback when ctrl-c is pressed.
"""
print ('Aborted by pressing ctrl-c')