diff options
author | Bruno Haible <bruno@clisp.org> | 2022-07-31 22:35:30 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-07-31 23:52:55 +0200 |
commit | ad5b5ec0c8c879678373dd210c00683ca5ee51dd (patch) | |
tree | 08db9f9e42687d3d90811e9c1beb35f6b272ef8f /pygnulib/constants.py | |
parent | 79e45321bc42fd620bb0f808a1727fd3ae8f9fb0 (diff) | |
download | gnulib-ad5b5ec0c8c879678373dd210c00683ca5ee51dd.tar.gz |
gnulib-tool.py: Write errors to stderr, not stdout.
* pygnulib/constants.py: Write error messages to stderr, not stdout.
Diffstat (limited to 'pygnulib/constants.py')
-rw-r--r-- | pygnulib/constants.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygnulib/constants.py b/pygnulib/constants.py index 10bd363f5b..91a2958eb3 100644 --- a/pygnulib/constants.py +++ b/pygnulib/constants.py @@ -213,7 +213,7 @@ def execute(args, verbose): 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. @@ -223,7 +223,7 @@ def execute(args, verbose): 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) |