From fb299d0fb134c603eafe7737bab8d22ec0b1cd59 Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Sun, 10 Mar 2024 12:09:48 -0500 Subject: SCons: Ensure `with` statement where applicable --- misc/scripts/check_ci_log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc/scripts/check_ci_log.py') diff --git a/misc/scripts/check_ci_log.py b/misc/scripts/check_ci_log.py index 1e5a12eeb4..d979d373de 100755 --- a/misc/scripts/check_ci_log.py +++ b/misc/scripts/check_ci_log.py @@ -9,8 +9,8 @@ if len(sys.argv) < 2: fname = sys.argv[1] -fileread = open(fname.strip(), "r") -file_contents = fileread.read() +with open(fname.strip(), "r") as fileread: + file_contents = fileread.read() # If find "ERROR: AddressSanitizer:", then happens invalid read or write # This is critical bug, so we need to fix this as fast as possible -- cgit v1.2.3