[Python-checkins] CVS: python/dist/src/Tools/scripts ndiff.py,1.11,1.12
Tim Peters
tim_one@users.sourceforge.net
Sat, 22 Sep 2001 21:06:07 -0700
Update of /cvsroot/python/python/dist/src/Tools/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv18490/python/Tools/scripts
Modified Files:
ndiff.py
Log Message:
Generalize file.writelines() to allow iterable objects.
Index: ndiff.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/scripts/ndiff.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** ndiff.py 2001/09/22 21:59:18 1.11
--- ndiff.py 2001/09/23 04:06:05 1.12
***************
*** 119,124 ****
def restore(which):
restored = difflib.restore(sys.stdin.readlines(), which)
! for line in restored:
! print line,
if __name__ == '__main__':
--- 119,123 ----
def restore(which):
restored = difflib.restore(sys.stdin.readlines(), which)
! sys.stdout.writelines(restored)
if __name__ == '__main__':