From 3ceceb9e2835767f80474223e9c07f3e55fcf194 Mon Sep 17 00:00:00 2001 From: TripleRider Date: Sat, 18 Nov 2023 16:02:38 -0800 Subject: [PATCH] Remove 'U' mode from open() --- TestCases/TestCase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TestCases/TestCase.py b/TestCases/TestCase.py index fad7d560766..e46e1367425 100644 --- a/TestCases/TestCase.py +++ b/TestCases/TestCase.py @@ -340,10 +340,10 @@ def run_filediff(self, running_with_tsan=False): diff = '' try: fromdate = time.ctime(os.stat(fromfile).st_mtime) - fromlines = open(fromfile, 'U').readlines() + fromlines = open(fromfile, 'r').readlines() try: todate = time.ctime(os.stat(tofile).st_mtime) - tolines = open(tofile, 'U').readlines() + tolines = open(tofile, 'r').readlines() # If file tolerance is set to 0, make regular diff if self.tol_file_percent == 0.0: