fix comment

This commit is contained in:
Marc-Philip 2024-06-30 20:46:12 +02:00 committed by GitHub
parent fc1267fe55
commit 1d92d9ed08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: