From 5ee411fcc6c64e6b39cacf4356645de6b883d699 Mon Sep 17 00:00:00 2001 From: Marc-Philip Date: Mon, 1 Jul 2024 06:53:10 +0200 Subject: [PATCH] Update patch_apply.py --- pio-scripts/patch_apply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pio-scripts/patch_apply.py b/pio-scripts/patch_apply.py index a15ae343..5c77f683 100644 --- a/pio-scripts/patch_apply.py +++ b/pio-scripts/patch_apply.py @@ -26,7 +26,7 @@ def replaceInFile(in_file, out_file, text, subs, flags=0): """Function for replacing content for the given 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: file_contents = infile.read()