8000 More f-strings · hugovk/drop-python@41f039c · GitHub
[go: up one dir, main page]

Skip to content

Commit 41f039c

Browse files
committed
More f-strings
1 parent 598126e commit 41f039c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

svg_wheel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def generate_svg_wheel(packages, total, versions):
113113
for version in versions:
114114
wheel = et.Element(
115115
"svg",
116-
viewBox="0 0 {0} {0}".format(2 * CENTER),
116+
viewBox=f"0 0 {2 * CENTER} {2 * CENTER}",
117117
version="1.1",
118118
xmlns="http://www.w3.org/2000/svg",
119119
)
@@ -124,7 +124,7 @@ def generate_svg_wheel(packages, total, versions):
124124
wheel, start=start, stop=stop, style_class=result[version]["css_class"]
125125
)
126126
title = et.SubElement(sector, "title")
127-
title.text = "{} {}".format(result["name"], result[version]["icon"])
127+
title.text = f"{result['name']} {result[version]['icon']}"
128128

129129
add_fraction(wheel, packages, total, version)
130130

0 commit comments

Comments
 (0)
0