commit | 6787a3806ee6a85a6f21ede70c10e15a6df267c4 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sat Nov 23 22:12:06 2013 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sat Nov 23 22:12:06 2013 +0200 |
tree | d72149a2f3a4eab3e8f288fa2a25bb1957620d91 | |
parent | d41c343f28bd7631cfa866f8276673ccafb71d57 [diff] [blame] |
Issue #15204: Deprecated the 'U' mode in file-like objects.
diff --git a/Tools/scripts/ndiff.py b/Tools/scripts/ndiff.py index 2422091..c6d09b8 100755 --- a/Tools/scripts/ndiff.py +++ b/Tools/scripts/ndiff.py
@@ -60,7 +60,7 @@ # couldn't be opened def fopen(fname): try: - return open(fname, 'U') + return open(fname) except IOError as detail: return fail("couldn't open " + fname + ": " + str(detail))