From 7b9c01a5b1bf92f6d75e05c6913129d99bb83143 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 13 Jan 2021 10:29:39 -0800 Subject: [PATCH] bin/post_version: convert the csv.reader into a concrete list which is necessary to be able to index into it. Part-of: --- bin/post_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/post_version.py b/bin/post_version.py index c4779f143d7..e2a3580e845 100755 --- a/bin/post_version.py +++ b/bin/post_version.py @@ -56,7 +56,7 @@ def update_calendar(version: str) -> None: p = pathlib.Path('docs') / 'release-calendar.csv' with p.open('r') as f: - calendar = csv.reader(f) + calendar = list(csv.reader(f)) branch = None for i, line in enumerate(calendar):