From dd410852abd73c4a9654a3affea3d240dbc3045b Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 2 Jun 2024 08:29:11 +0200 Subject: [PATCH] Fixed Python syntax for f-strings for older Python versions. --- pyEDAA/Reports/OSVVM/AlertLog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyEDAA/Reports/OSVVM/AlertLog.py b/pyEDAA/Reports/OSVVM/AlertLog.py index 82f7bb49..32906456 100644 --- a/pyEDAA/Reports/OSVVM/AlertLog.py +++ b/pyEDAA/Reports/OSVVM/AlertLog.py @@ -66,7 +66,9 @@ def __bool__(self) -> bool: def _format(node: Node) -> str: - return f"{node._value}: {node["TotalErrors"]}={node["AlertCountFailures"]}/{node["AlertCountErrors"]}/{node["AlertCountWarnings"]} {node["PassedCount"]}/{node["AffirmCount"]}" + return f"{node._value}: {node['TotalErrors']}={node['AlertCountFailures']}/{node['AlertCountErrors']}/{node['AlertCountWarnings']} {node['PassedCount']}/{node['AffirmCount']}" + # TODO: Python 3.12+ + # return f"{node._value}: {node["TotalErrors"]}={node["AlertCountFailures"]}/{node["AlertCountErrors"]}/{node["AlertCountWarnings"]} {node["PassedCount"]}/{node["AffirmCount"]}" @export