Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mpw96 authored Jun 30, 2024
1 parent fc1267f commit 1d92d9e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pio-scripts/patch_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ def is_tool(name):
return which(name) is not None

def replaceInFile(in_file, out_file, text, subs, flags=0):
"""
Function for replacing content for the given file
Taken from https://www.studytonight.com/python-howtos/search-and-replace-a-text-in-a-file-in-python
"""
"""Function for replacing content for the given file."""

if os.path.exists(in_file):
#read the file contents
with open(in_file, "r", encoding="utf-8") as infile:
Expand Down

0 comments on commit 1d92d9e

Please sign in to comment.