Skip to content

Commit 3b1e41f

Browse files
committed
Fix re.subn DeprecationWarning in file module
1 parent 445d03e commit 3b1e41f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

salt/modules/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2834,7 +2834,7 @@ def replace(
28342834
cpattern,
28352835
repl.replace(b"\\", b"\\\\") if backslash_literal else repl,
28362836
r_data,
2837-
count,
2837+
count=count,
28382838
)
28392839

28402840
# found anything? (even if no change)

0 commit comments

Comments
 (0)