From 6787a3806ee6a85a6f21ede70c10e15a6df267c4 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 23 Nov 2013 22:12:06 +0200 Subject: Issue #15204: Deprecated the 'U' mode in file-like objects. --- Tools/scripts/diff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tools/scripts/diff.py') diff --git a/Tools/scripts/diff.py b/Tools/scripts/diff.py index f9b14bf5e51..8be527fd627 100755 --- a/Tools/scripts/diff.py +++ b/Tools/scripts/diff.py @@ -38,9 +38,9 @@ def main(): fromdate = file_mtime(fromfile) todate = file_mtime(tofile) - with open(fromfile, 'U') as ff: + with open(fromfile) as ff: fromlines = ff.readlines() - with open(tofile, 'U') as tf: + with open(tofile) as tf: tolines = tf.readlines() if options.u: -- cgit v1.2.3