From 518becac59055e77c93381c93135ef9a04812132 Mon Sep 17 00:00:00 2001 From: Alexander Lacson <41433185+max-torch@users.noreply.github.com> Date: Wed, 16 Feb 2022 11:40:16 +0800 Subject: [PATCH] [wmltools] Fix Docstrings docstrings of the keyboardinterrupt handler. --- data/tools/wmlindent | 2 +- data/tools/wmlxgettext | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/tools/wmlindent b/data/tools/wmlindent index 96893349caf..31f5aab0fd4 100755 --- a/data/tools/wmlindent +++ b/data/tools/wmlindent @@ -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') diff --git a/data/tools/wmlxgettext b/data/tools/wmlxgettext index 950f48cf3dc..70c8d6ec3ee 100755 --- a/data/tools/wmlxgettext +++ b/data/tools/wmlxgettext @@ -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')