Skip to content

Commit

Permalink
Fix f-string formatting for Python <3.12 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
walkawayy authored Aug 13, 2024
1 parent f2f2c13 commit 8072516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _update_attribute_coord(data, name):
values = part.split("(")[1].split(")")[0]
for number in values.split(","):
new_values.append(str(int(int(number) * UI_MULTIPLIER)))
part = f"{name}={part.replace(values, ",".join(new_values))}"
part = f"{name}={part.replace(values, ','.join(new_values))}"
output.append(part)
return "".join(output)

Expand Down

0 comments on commit 8072516

Please sign in to comment.