summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/ndiff.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-10-03 19:03:19 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-10-03 19:03:19 (GMT)
commit130e37f3e263af29de31d75170ff665ec3ab076b (patch)
tree362c30d4cf4ad2a315253b78bc001ee682bf2f59 /Tools/scripts/ndiff.py
parentab9b32c0778655db5d2bf3f4c34d3a205d87a1af (diff)
downloadcpython-130e37f3e263af29de31d75170ff665ec3ab076b.zip
cpython-130e37f3e263af29de31d75170ff665ec3ab076b.tar.gz
cpython-130e37f3e263af29de31d75170ff665ec3ab076b.tar.bz2
Read the text files to be compared in universal-newline mode.
Diffstat (limited to 'Tools/scripts/ndiff.py')
-rwxr-xr-xTools/scripts/ndiff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/ndiff.py b/Tools/scripts/ndiff.py
index f399338..88712b8 100755
--- a/Tools/scripts/ndiff.py
+++ b/Tools/scripts/ndiff.py
@@ -60,7 +60,7 @@ def fail(msg):
# couldn't be opened
def fopen(fname):
try:
- return open(fname, 'r')
+ return open(fname, 'U')
except IOError, detail:
return fail("couldn't open " + fname + ": " + str(detail))