Mercurial > hg > lxmldump
changeset 76:8471722f70e0
Fix previous cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 10 Jan 2022 23:22:15 +0200 |
parents | cac40b08c555 |
children | fea973d0bc76 |
files | lxmldump.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lxmldump.py Mon Jan 10 22:02:10 2022 +0200 +++ b/lxmldump.py Mon Jan 10 23:22:15 2022 +0200 @@ -199,8 +199,8 @@ ## Fatal error handler -def pkk_fatal(smsg): - print(u"ERROR: "+ smsg) +def pkk_fatal(msg): + print(f"ERROR: {msg}", file=sys.stderr) sys.exit(1) @@ -288,7 +288,7 @@ def error(self, msg): self.print_help() - print(f"\nerror: {msg}") + print(f"\nERROR: {msg}", file=sys.stderr) sys.exit(2)