Skip to content

Commit b43d97b

Browse files
committed
BUG: Fix bug in doc/neps/tools/build_index.py
The bug was introduced in numpygh-27293 when `enumerate` was removed.
1 parent 50185a9 commit b43d97b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/neps/tools/build_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def nep_metadata():
3838

3939
# The title should be the first line after a line containing only
4040
# * or = signs.
41-
for line in lines[:-1]:
41+
for i, line in enumerate(lines[:-1]):
4242
chars = set(line.rstrip())
4343
if len(chars) == 1 and ("=" in chars or "*" in chars):
4444
break

0 commit comments

Comments
 (0)