Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/diff.py @ 33666:ab588ce9e71f legacy-trunk
Read the text files to be compared in universal-newline mode.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Sun, 03 Oct 2004 19:03:19 +0000 |
| parents | 6d3bdd19beeb |
| children | 7fb0abf928e0 65d5ecefd50d |
line wrap: on
line diff
--- a/Tools/scripts/diff.py Sun Oct 03 18:35:19 2004 +0000 +++ b/Tools/scripts/diff.py Sun Oct 03 19:03:19 2004 +0000 @@ -31,8 +31,8 @@ fromdate = time.ctime(os.stat(fromfile).st_mtime) todate = time.ctime(os.stat(tofile).st_mtime) - fromlines = open(fromfile).readlines() - tolines = open(tofile).readlines() + fromlines = open(fromfile, 'U').readlines() + tolines = open(tofile, 'U').readlines() if options.u: diff = difflib.unified_diff(fromlines, tolines, fromfile, tofile, fromdate, todate, n=n)
