Update patch_apply.py

This commit is contained in:
Marc-Philip 2024-07-01 06:53:10 +02:00 committed by GitHub
parent 1d92d9ed08
commit 5ee411fcc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ def replaceInFile(in_file, out_file, text, subs, flags=0):
"""Function for replacing content for the given file.""" """Function for replacing content for the given file."""
if os.path.exists(in_file): if os.path.exists(in_file):
#read the file contents # read the file contents
with open(in_file, "r", encoding="utf-8") as infile: with open(in_file, "r", encoding="utf-8") as infile:
file_contents = infile.read() file_contents = infile.read()