Skip to content

Commit

Permalink
Fixed Python syntax for f-strings for older Python versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jun 2, 2024
1 parent 3ef66b6 commit dd41085
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyEDAA/Reports/OSVVM/AlertLog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd41085

Please sign in to comment.