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:]