commit | 2c9aa5ea8d13de7372c8c8587e96479223ea420d | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Sun Sep 23 04:06:05 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Sun Sep 23 04:06:05 2001 +0000 |
tree | e3ab72cc929aff0178995f45de321404ed0984aa | |
parent | d31db7e939db2f291eda86fedc64e8f4c51bb47a [diff] [blame] |
Generalize file.writelines() to allow iterable objects.
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 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:]