Skip to content

Commit b4777fa

Browse files
committed
rename i to idx
1 parent 394677f commit b4777fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

eessi_bot_job_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,13 @@ def parse_scontrol_show_job_output(self, output):
290290

291291
keys_matches = list(key_pattern.finditer(stripped_output))
292292

293-
for i, key_match in enumerate(keys_matches):
293+
for idx, key_match in enumerate(keys_matches):
294294
# The key is what actually got matched by the regex
295295
key = key_match.group(1)
296296
# The value starts where the key ends...
297297
value_start = key_match.end()
298298
# and it ends where the next key starts (or, if it's the last one, where the string ends)
299-
value_end = keys_matches[i+1].start() if (i + 1) < len(keys_matches) else len(stripped_output)
299+
value_end = keys_matches[idx+1].start() if (idx + 1) < len(keys_matches) else len(stripped_output)
300300
value = stripped_output[value_start:value_end].strip()
301301
job_info[key] = value
302302

0 commit comments

Comments
 (0)