diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-22 21:59:18 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-22 21:59:18 (GMT) |
commit | 42b68772933d311c048edc6a18521c317758578a (patch) | |
tree | 72042ad881d8ae561b602cd1f3f8b8f717cc7287 /Tools | |
parent | 8a9c284437652826a3da83ec38c4536fa111eb40 (diff) | |
download | cpython-42b68772933d311c048edc6a18521c317758578a.zip cpython-42b68772933d311c048edc6a18521c317758578a.tar.gz cpython-42b68772933d311c048edc6a18521c317758578a.tar.bz2 |
Fix restore (difflib.restore() became a generator too).
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/ndiff.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/scripts/ndiff.py b/Tools/scripts/ndiff.py index 6f0f9a9..7ceccc5 100755 --- a/Tools/scripts/ndiff.py +++ b/Tools/scripts/ndiff.py @@ -118,7 +118,8 @@ def main(args): def restore(which): restored = difflib.restore(sys.stdin.readlines(), which) - sys.stdout.writelines(restored) + for line in restored: + print line, if __name__ == '__main__': args = sys.argv[1:] |