Skip to content

Commit e0abe39

Browse files
authored
Update sort_check_output.py
1 parent 839bb31 commit e0abe39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

volumes/sort_check_output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
TASK_RE = re.compile(r'\[\s*(\d+)\]')
77

8-
def extract_key(line):
8+
def task_id(line):
99
match = TASK_RE.search(line)
1010
return int(match.group(1)) if match else 0
1111

12-
for line in sorted(fileinput.input(), key=extract_key):
12+
for line in sorted(fileinput.input(), key=task_id):
1313
print(line, end='')

0 commit comments

Comments
 (0)