summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rw-r--r--Tools/scripts/diff.py4
-rwxr-xr-xTools/scripts/ndiff.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/diff.py b/Tools/scripts/diff.py
index 05bfc25..52dcab1 100644
--- a/Tools/scripts/diff.py
+++ b/Tools/scripts/diff.py
@@ -31,8 +31,8 @@ def main():
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)
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))