Use sys.exit(...) instead of exit(...): exit(...) should not be used in programs
This commit is contained in:
1 parent
f088a1bb39
commit
25cd520fc4
10 files changed
+30
-28
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user