diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-09 22:57:02 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-08-28 15:18:14 +0200 |
commit | 25cd520fc429c464846b0f986104db45b3bfaebb (patch) | |
tree | 3b8055f06c0b70d0cdd2431d2597f6173f3d643d /share | |
parent | f088a1bb392eaecd912ff9bca6967a8f4765c2b7 (diff) |
Use sys.exit(...) instead of exit(...): exit(...) should not be used in programs
Diffstat (limited to 'share')
-rwxr-xr-x | share/qt/extract_strings_qt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qt/extract_strings_qt.py b/share/qt/extract_strings_qt.py index 5492fdb8c5..e3be18205d 100755 --- a/share/qt/extract_strings_qt.py +++ b/share/qt/extract_strings_qt.py @@ -58,7 +58,7 @@ XGETTEXT=os.getenv('XGETTEXT', 'xgettext') if not XGETTEXT: print('Cannot extract strings: xgettext utility is not installed or not configured.',file=sys.stderr) print('Please install package "gettext" and re-run \'./configure\'.',file=sys.stderr) - exit(1) + sys.exit(1) child = Popen([XGETTEXT,'--output=-','-n','--keyword=_'] + files, stdout=PIPE) (out, err) = child.communicate() |