Skip to content

Commit 843606a

Browse files
author
TripleRider
authored
Remove 'U' mode from open() (#2171)
1 parent a0cab87 commit 843606a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

TestCases/TestCase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,10 @@ def run_filediff(self, running_with_tsan=False):
340340
diff = ''
341341
try:
342342
fromdate = time.ctime(os.stat(fromfile).st_mtime)
343-
fromlines = open(fromfile, 'U').readlines()
343+
fromlines = open(fromfile, 'r').readlines()
344344
try:
345345
todate = time.ctime(os.stat(tofile).st_mtime)
346-
tolines = open(tofile, 'U').readlines()
346+
tolines = open(tofile, 'r').readlines()
347347

348348
# If file tolerance is set to 0, make regular diff
349349
if self.tol_file_percent == 0.0:

0 commit comments

Comments
 (0)