changeset 75:cac40b08c555

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 10 Jan 2022 22:02:10 +0200
parents f1fd5a53c341
children 8471722f70e0
files lxmldump.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lxmldump.py	Thu Dec 16 11:04:20 2021 +0200
+++ b/lxmldump.py	Mon Jan 10 22:02:10 2022 +0200
@@ -286,9 +286,9 @@
         "(C) Copyright 2021 Matti 'ccr' Hämäläinen <ccr@tnsp.org>\n")
         super().print_help()
 
-    def error(self, message):
+    def error(self, msg):
         self.print_help()
-        sys.stderr.write(f"\nerror: {message}\n")
+        print(f"\nerror: {msg}")
         sys.exit(2)