Skip to content

Commit ec3616f

Browse files
committed
Use Python's "enumerate()" function to simplify a "for" loop
1 parent ac948a9 commit ec3616f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

seleniumbase/console_scripts/sb_caseplans.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,8 @@ def view_summary_of_existing_case_plans(root, tests):
175175
case_data_storage = []
176176
case_to_test_hash = {}
177177
full_t = []
178-
test_index = -1
179-
for test in tests:
178+
for test_index, test in enumerate(tests):
180179
full_t.append(test)
181-
test_index += 1
182180
parts = test.strip().split("/")
183181
test_address = None
184182
folder_path = None

0 commit comments

Comments
 (0)