diff options
author | Dylan Baker <dylan.c.baker@intel.com> | 2021-01-13 10:29:39 -0800 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-01-21 23:22:36 +0000 |
commit | 7b9c01a5b1bf92f6d75e05c6913129d99bb83143 (patch) | |
tree | f8f4a64a96c751c7c64710652246d91372e32e28 /bin | |
parent | 61720098fa4cddaeb5759a499c9c3fabf5bb84b7 (diff) |
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>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/post_version.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |