bin/post_version: convert the csv.reader into a concrete list

which is necessary to be able to index into it.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8477>
This commit is contained in:
Dylan Baker 2021-01-13 10:29:39 -08:00 committed by Marge Bot
parent 61720098fa
commit 7b9c01a5b1
1 changed files with 1 additions and 1 deletions

View File

@ -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):