Skip to content

Commit 20bf178

Browse files
authored
Merge pull request #197 from mull-project/stanislaw/python_313
Pass count as keyword argument to re.sub()
2 parents 4298341 + 83fa66d commit 20bf178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filecheck/filecheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def parse_check(line: str, line_idx, config: Config) -> Optional[Check]:
374374
LINE_NUMBER_REGEX,
375375
str(line_idx + offset + 1),
376376
check_expression,
377-
1,
377+
count=1,
378378
)
379379
line_var_match = re.search(LINE_NUMBER_REGEX, check_expression)
380380

0 commit comments

Comments
 (0)