[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE Wwindows.py,1.13,1.14

Jack Jansen jackjansen@users.sourceforge.net
Mon, 31 Dec 2001 06:53:01 -0800


Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv30688/Python/Mac/Tools/IDE

Modified Files:
	Wwindows.py 
Log Message:
Use the Carbon scrap manager interface if the old interface isn't available.

Index: Wwindows.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/Wwindows.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** Wwindows.py	2001/11/02 19:09:34	1.13
--- Wwindows.py	2001/12/31 14:52:59	1.14
***************
*** 565,570 ****
  			1) == 1:
  		from Carbon import Scrap
! 		Scrap.ZeroScrap()
! 		Scrap.PutScrap('TEXT', stuff)
  
  
--- 565,575 ----
  			1) == 1:
  		from Carbon import Scrap
! 		if hasattr(Scrap, 'PutScrap'):
! 			Scrap.ZeroScrap()
! 			Scrap.PutScrap('TEXT', stuff)
! 		else:
! 			Scrap.ClearCurrentScrap()
! 			sc = Scrap.GetCurrentScrap()
! 			sc.PutScrapFlavor('TEXT', 0, stuff)