diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-23 04:06:05 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-23 04:06:05 (GMT) |
commit | 2c9aa5ea8d13de7372c8c8587e96479223ea420d (patch) | |
tree | e3ab72cc929aff0178995f45de321404ed0984aa /Tools | |
parent | d31db7e939db2f291eda86fedc64e8f4c51bb47a (diff) | |
download | cpython-2c9aa5ea8d13de7372c8c8587e96479223ea420d.zip cpython-2c9aa5ea8d13de7372c8c8587e96479223ea420d.tar.gz cpython-2c9aa5ea8d13de7372c8c8587e96479223ea420d.tar.bz2 |
Generalize file.writelines() to allow iterable objects.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/ndiff.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Tools/scripts/ndiff.py b/Tools/scripts/ndiff.py index 7ceccc5..6f0f9a9 100755 --- a/Tools/scripts/ndiff.py +++ b/Tools/scripts/ndiff.py @@ -118,8 +118,7 @@ def main(args): def restore(which): restored = difflib.restore(sys.stdin.readlines(), which) - for line in restored: - print line, + sys.stdout.writelines(restored) if __name__ == '__main__': args = sys.argv[1:] |