From 2c9aa5ea8d13de7372c8c8587e96479223ea420d Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 23 Sep 2001 04:06:05 +0000 Subject: Generalize file.writelines() to allow iterable objects. --- Tools/scripts/ndiff.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Tools/scripts/ndiff.py') diff --git a/Tools/scripts/ndiff.py b/Tools/scripts/ndiff.py index 7ceccc5711..6f0f9a9cf3 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:] -- cgit v1.2.1