diff --git a/.maint/update_authors.py b/.maint/update_authors.py index 5b357049..e6082bd9 100644 --- a/.maint/update_authors.py +++ b/.maint/update_authors.py @@ -49,7 +49,7 @@ def read_md_table(md_text): break values = [v.strip() or None for v in line.split("|")][1:-1] - retval.append({k: v for k, v in zip(keys, values) if v}) + retval.append({k: v for k, v in zip(keys, values, strict=True) if v}) return retval @@ -288,7 +288,12 @@ def _aslist(value): print("Authors (%d):" % len(hits)) print( "%s." - % "; ".join(["%s \\ :sup:`%s`\\ " % (i["name"], idx) for i, idx in zip(hits, aff_indexes)]) + % "; ".join( + [ + "%s \\ :sup:`%s`\\ " % (i["name"], idx) + for i, idx in zip(hits, aff_indexes, strict=True) + ] + ) ) print(