diff options
| author | practicalswift <[email protected]> | 2017-07-09 22:57:02 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-08-28 15:18:14 +0200 |
| commit | 25cd520fc429c464846b0f986104db45b3bfaebb (patch) | |
| tree | 3b8055f06c0b70d0cdd2431d2597f6173f3d643d /share | |
| parent | Merge #10303: [bench] Include ms/blk stats in Connect* benchmarks. (diff) | |
| download | discoin-25cd520fc429c464846b0f986104db45b3bfaebb.tar.xz discoin-25cd520fc429c464846b0f986104db45b3bfaebb.zip | |
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 5492fdb8c..e3be18205 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() |