Fix problems with older versions of Python

This commit is contained in:
Joeri Exelmans 2024-10-09 10:32:32 +02:00
parent 7daee41907
commit c248fc9090
2 changed files with 5 additions and 2 deletions

View file

@ -23,7 +23,8 @@ def render_conformance_check_result(error_list):
if len(error_list) == 0:
return "OK"
else:
return f"There were {len(error_list)} errors: \n {'\n '.join(error_list)}"
joined = '\n '.join(error_list)
return f"There were {len(error_list)} errors: \n {joined}"
class Conformance: