Skip to content

Commit

Permalink
Remove 'U' mode from open()
Browse files Browse the repository at this point in the history
  • Loading branch information
TripleRider committed Nov 19, 2023
1 parent a0cab87 commit 3ceceb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TestCases/TestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3ceceb9

Please sign in to comment.