summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/ndiff.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-23 04:06:05 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-23 04:06:05 (GMT)
commit2c9aa5ea8d13de7372c8c8587e96479223ea420d (patch)
treee3ab72cc929aff0178995f45de321404ed0984aa /Tools/scripts/ndiff.py
parentd31db7e939db2f291eda86fedc64e8f4c51bb47a (diff)
downloadcpython-2c9aa5ea8d13de7372c8c8587e96479223ea420d.zip
cpython-2c9aa5ea8d13de7372c8c8587e96479223ea420d.tar.gz
cpython-2c9aa5ea8d13de7372c8c8587e96479223ea420d.tar.bz2
Generalize file.writelines() to allow iterable objects.
Diffstat (limited to 'Tools/scripts/ndiff.py')
-rwxr-xr-xTools/scripts/ndiff.py3
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:]