Skip to content

Commit

Permalink
Fix bad version checker in "previous versions" documentation
Browse files Browse the repository at this point in the history
We only need one string formatting call, not two.
  • Loading branch information
jakelishman committed Oct 20, 2023
1 parent fd5399b commit ec7a649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def add_versions_to_config(_app, config):
if current_version_info[0] != "0":
raise Exception("TODO: handle major versions")
versions.extend(
f"0.{x}" % x for x in range(first_unified_zero_minor, int(current_version_info[1]) + 1)
f"0.{x}" for x in range(first_unified_zero_minor, int(current_version_info[1]) + 1)
)
config.html_context["version_list"] = versions

Expand Down

0 comments on commit ec7a649

Please sign in to comment.