Skip to content

Commit 03b11fb

Browse files
Remove deprecated use of count as positional arg
Python 13 requires count to be passed as a kwarg rather than a positional arg because of potential confusion with flags, see python/cpython#56166 Signed-off-by: Paul Elliott <[email protected]>
1 parent d68446c commit 03b11fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/generate_test_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ def escaped_split(inp_str, split_char):
762762
raise ValueError('Expected split character. Found string!')
763763
out = re.sub(r'(\\.)|' + split_char,
764764
lambda m: m.group(1) or '\n', inp_str,
765-
len(inp_str)).split('\n')
765+
count = len(inp_str)).split('\n')
766766
out = [x for x in out if x]
767767
return out
768768

0 commit comments

Comments
 (0)