mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 14:19:51 +00:00
[wmltools] Fix Docstrings
docstrings of the keyboardinterrupt handler.
This commit is contained in:
parent
24098cb54a
commit
518becac59
@ -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')
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user