diff Tools/scripts/diff.py @ 87448:70bd6f7e013b

Issue #15204: Deprecated the 'U' mode in file-like objects.
author Serhiy Storchaka <storchaka@gmail.com>
date Sat, 23 Nov 2013 22:12:06 +0200
parents ec95b94ea831
children
line wrap: on
line diff
--- a/Tools/scripts/diff.py	Sat Nov 23 11:51:53 2013 -0800
+++ b/Tools/scripts/diff.py	Sat Nov 23 22:12:06 2013 +0200
@@ -38,9 +38,9 @@
 
     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: