summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-22 21:59:18 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-22 21:59:18 (GMT)
commit42b68772933d311c048edc6a18521c317758578a (patch)
tree72042ad881d8ae561b602cd1f3f8b8f717cc7287 /Tools/scripts
parent8a9c284437652826a3da83ec38c4536fa111eb40 (diff)
downloadcpython-42b68772933d311c048edc6a18521c317758578a.zip
cpython-42b68772933d311c048edc6a18521c317758578a.tar.gz
cpython-42b68772933d311c048edc6a18521c317758578a.tar.bz2
Fix restore (difflib.restore() became a generator too).
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/ndiff.py3
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:]