Skip to content

Commit

Permalink
feat/intial-v fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
hminaee-tc committed Jun 18, 2024
1 parent 905c724 commit a96f777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion find_and_replace_strings/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
import sys


def replace_in_file(filename, search, replacement, dry_run):
def replace_in_file(filename, search, replacement, dry_run=False):
with fileinput.FileInput(filename, inplace=not dry_run) as file:
for line in file:
if search in line and dry_run:
Expand Down

0 comments on commit a96f777

Please sign in to comment.