Skip to content

Commit 6f9e028

Browse files
committed
filter-build-log.py: use find() instead of index() to avoid ValueError
1 parent 0ce7f59 commit 6f9e028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/filter-build-log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def print_filtered_log(log):
2525
atbeginning = False
2626
if parsingdups:
2727
if line.startswith(' '):
28-
if line.index('/') >= 0:
28+
if line.find('/') >= 0:
2929
# Strip to containing package only.
3030
line = line[:line.rindex('/')]
3131
dups.append(line)

0 commit comments

Comments
 (0)