[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE PyDebugger.py,1.8,1.8.6.1

Jack Jansen jackjansen@users.sourceforge.net
Sun, 10 Mar 2002 13:29:57 -0800


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

Modified Files:
      Tag: release22-maint
	PyDebugger.py 
Log Message:
Backport of 1.9 (missed last time around):

Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
MachoPython. Mainly making sure we don't call routines that don't exist
and representing pathnames in a os.separator-neutral format.



Index: PyDebugger.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PyDebugger.py,v
retrieving revision 1.8
retrieving revision 1.8.6.1
diff -C2 -d -r1.8 -r1.8.6.1
*** PyDebugger.py	18 Nov 2001 14:12:43 -0000	1.8
--- PyDebugger.py	10 Mar 2002 21:29:55 -0000	1.8.6.1
***************
*** 497,501 ****
  		try:
  			try:
! 				MacOS.EnableAppswitch(0)
  				if self.quitting:
  					# returning None is not enough, a former BdbQuit exception
--- 497,502 ----
  		try:
  			try:
! 				if hasattr(MacOS, 'EnableAppswitch'):
! 					MacOS.EnableAppswitch(0)
  				if self.quitting:
  					# returning None is not enough, a former BdbQuit exception
***************
*** 513,517 ****
  				return self.trace_dispatch
  			finally:
! 				MacOS.EnableAppswitch(-1)
  		except KeyboardInterrupt:
  			self.set_step()
--- 514,519 ----
  				return self.trace_dispatch
  			finally:
! 				if hasattr(MacOS, 'EnableAppswitch'):
! 					MacOS.EnableAppswitch(-1)
  		except KeyboardInterrupt:
  			self.set_step()