* pygnulib/constants.py: Write error messages to stderr, not stdout.
2022-07-31 Bruno Haible <bruno@clisp.org>
+ gnulib-tool.py: Write errors to stderr, not stdout.
+ * pygnulib/constants.py: Write error messages to stderr, not stdout.
+
gnulib-tool.py: Use mainstream coding style.
* pygnulib/GLConfig.py: Use 'raise' to re-throw an exception.
try: # Try to run
retcode = sp.call(args)
except Exception as error:
- print(error)
+ sys.stderr.write(str(error) + '\n')
sys.exit(1)
else:
# Commands like automake produce output to stderr even when they succeed.
try: # Try to run
retcode = sp.call(xargs, shell=True)
except Exception as error:
- print(error)
+ sys.stderr.write(str(error) + '\n')
sys.exit(1)
if retcode == 0:
os.remove(temp)