[Python-checkins] CVS: python/dist/src/Tools/scripts ndiff.py,1.10,1.11

Tim Peters tim_one@users.sourceforge.net
Sat, 22 Sep 2001 14:59:20 -0700


Update of /cvsroot/python/python/dist/src/Tools/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv29071/python/Tools/scripts

Modified Files:
	ndiff.py 
Log Message:
Fix restore (difflib.restore() became a generator too).


Index: ndiff.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/scripts/ndiff.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** ndiff.py	2001/09/22 21:30:22	1.10
--- ndiff.py	2001/09/22 21:59:18	1.11
***************
*** 119,123 ****
  def restore(which):
      restored = difflib.restore(sys.stdin.readlines(), which)
!     sys.stdout.writelines(restored)
  
  if __name__ == '__main__':
--- 119,124 ----
  def restore(which):
      restored = difflib.restore(sys.stdin.readlines(), which)
!     for line in restored:
!         print line,
  
  if __name__ == '__main__':