Skip to content

Commit

Permalink
More f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 14, 2024
1 parent 598126e commit 41f039c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svg_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def generate_svg_wheel(packages, total, versions):
for version in versions:
wheel = et.Element(
"svg",
viewBox="0 0 {0} {0}".format(2 * CENTER),
viewBox=f"0 0 {2 * CENTER} {2 * CENTER}",
version="1.1",
xmlns="http://www.w3.org/2000/svg",
)
Expand All @@ -124,7 +124,7 @@ def generate_svg_wheel(packages, total, versions):
wheel, start=start, stop=stop, style_class=result[version]["css_class"]
)
title = et.SubElement(sector, "title")
title.text = "{} {}".format(result["name"], result[version]["icon"])
title.text = f"{result['name']} {result[version]['icon']}"

add_fraction(wheel, packages, total, version)

Expand Down

0 comments on commit 41f039c

Please sign in to comment.