Skip to content

Commit c592753

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 72d82a2 commit c592753

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/update_switcher.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def main():
2626
for i, version in enumerate(switcher):
2727
if version["version"] == "latest":
2828
latest_index = i
29-
previous_version = re.search(r"latest \(([v.\d]+)\)", version["name"]).group(1)
29+
previous_version = re.search(
30+
r"latest \(([v.\d]+)\)", version["name"]
31+
).group(1)
3032
if previous_version == args.version:
3133
print(f"Version {args.version} already is the latest version. Exiting.")
3234
return

0 commit comments

Comments
 (0)