Skip to content

Commit

Permalink
Formatted test_patch
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuram1999 committed Jan 26, 2024
1 parent c5f1537 commit 360509f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/tools/mutator/utils/testing_generated_mutant.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_patch( # pylint: disable=too-many-arguments
with open(file, "r", encoding="utf-8") as filepath:
content = filepath.read()
# Perform the replacement based on the index values
replaced_content = (content[: patch["start"]] + patch["new_string"] + content[patch["end"] :])
replaced_content = content[: patch["start"]] + patch["new_string"] + content[patch["end"] :]
# Write the modified content back to the file
with open(file, "w", encoding="utf-8") as filepath:
filepath.write(replaced_content)
Expand Down

0 comments on commit 360509f

Please sign in to comment.