diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-03 01:35:10 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-03 01:35:10 +0200 |
commit | 8e02799127ba8d411285d95e6298201197b4393c (patch) | |
tree | 2deb213a82ae29f8c5b6bbe0e7cbd922024da650 /Tools/scripts/diff.py | |
parent | 6b1d7042eafcf124b22d70d3770b94cf58b66a77 (diff) | |
parent | b6f4002c128868ca2a6c8f3b6a5d76d5f2aa6adb (diff) | |
download | cpython-8e02799127ba8d411285d95e6298201197b4393c.tar.gz |
Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.
Used PyMem_New to check overflow.
Diffstat (limited to 'Tools/scripts/diff.py')
-rwxr-xr-x | Tools/scripts/diff.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/diff.py b/Tools/scripts/diff.py index f9b14bf5e5..8be527fd62 100755 --- a/Tools/scripts/diff.py +++ b/Tools/scripts/diff.py @@ -38,9 +38,9 @@ def main(): 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: |