Mesa (master): bin/post_version: convert the csv.reader into a concrete list
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 21 23:23:23 UTC 2021
Module: Mesa
Branch: master
Commit: 7b9c01a5b1bf92f6d75e05c6913129d99bb83143
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b9c01a5b1bf92f6d75e05c6913129d99bb83143
Author: Dylan Baker <dylan.c.baker at intel.com>
Date: Wed Jan 13 10:29:39 2021 -0800
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>
---
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):
More information about the mesa-commit
mailing list