From dc8912c128acf1a75152d4010044dfb6286fb7fe Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 27 Jun 2024 14:45:45 +0500 Subject: [PATCH] -m ifcopenshell.validate not to print an empty line if file is valid --- src/ifcopenshell-python/ifcopenshell/validate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/validate.py b/src/ifcopenshell-python/ifcopenshell/validate.py index 4deec6fc99..5de6ae2f77 100644 --- a/src/ifcopenshell-python/ifcopenshell/validate.py +++ b/src/ifcopenshell-python/ifcopenshell/validate.py @@ -543,7 +543,8 @@ if __name__ == "__main__": else: return str(x) - print("\n".join(json.dumps(x, default=conv) for x in logger.statements)) + for x in logger.statements: + print(json.dumps(x, default=conv)) if handler: logger.removeHandler(handler)