[Python-checkins] python/dist/src/Mac/Tools/IDE PyEdit.py,1.40,1.41

jvr@users.sourceforge.net jvr@users.sourceforge.net
Fri, 09 May 2003 01:27:35 -0700


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

Modified Files:
	PyEdit.py 
Log Message:
dead code removal

Index: PyEdit.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PyEdit.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** PyEdit.py	6 May 2003 14:28:31 -0000	1.40
--- PyEdit.py	9 May 2003 08:27:33 -0000	1.41
***************
*** 27,37 ****
  
  
- try:
- 	import Wthreading
- except ImportError:
- 	haveThreading = 0
- else:
- 	haveThreading = Wthreading.haveThreading
- 
  _scriptuntitledcounter = 1
  _wordchars = string.ascii_letters + string.digits + "_"
--- 27,30 ----
***************
*** 660,672 ****
  			cwdindex = None
  		try:
! 			if haveThreading:
! 				self._thread = Wthreading.Thread(os.path.basename(file), 
! 							self._exec_threadwrapper, pytext, globals, locals, file, self.debugging, 
! 							modname, self.profiling)
! 				self.setthreadstate((1, 1))
! 				self._thread.start()
! 			else:
! 				execstring(pytext, globals, locals, file, self.debugging, 
! 							modname, self.profiling)
  		finally:
  			if self.path:
--- 653,658 ----
  			cwdindex = None
  		try:
! 			execstring(pytext, globals, locals, file, self.debugging, 
! 					modname, self.profiling)
  		finally:
  			if self.path:
***************
*** 1205,1216 ****
  	try:
  		if debugging:
! 			if haveThreading:
! 				lock = Wthreading.Lock()
! 				lock.acquire()
! 				PyDebugger.startfromhere()
! 				lock.release()
! 			else:
! 				PyDebugger.startfromhere()
! 		elif not haveThreading:
  			if hasattr(MacOS, 'EnableAppswitch'):
  				MacOS.EnableAppswitch(0)
--- 1191,1196 ----
  	try:
  		if debugging:
! 			PyDebugger.startfromhere()
! 		else:
  			if hasattr(MacOS, 'EnableAppswitch'):
  				MacOS.EnableAppswitch(0)
***************
*** 1230,1236 ****
  				exec code in globals, locals
  		finally:
! 			if not haveThreading:
! 				if hasattr(MacOS, 'EnableAppswitch'):
! 					MacOS.EnableAppswitch(-1)
  	except W.AlertError, detail:
  		raise W.AlertError, detail
--- 1210,1215 ----
  				exec code in globals, locals
  		finally:
! 			if hasattr(MacOS, 'EnableAppswitch'):
! 				MacOS.EnableAppswitch(-1)
  	except W.AlertError, detail:
  		raise W.AlertError, detail
***************
*** 1241,1248 ****
  			sys.stderr.write("Script exited with status code: %s\n" % repr(arg.code))
  	except:
- 		if haveThreading:
- 			import continuation
- 			lock = Wthreading.Lock()
- 			lock.acquire()
  		if debugging:
  			sys.settrace(None)
--- 1220,1223 ----
***************
*** 1251,1256 ****
  		else:
  			tracebackwindow.traceback(1, filename)
- 		if haveThreading:
- 			lock.release()
  	if debugging:
  		sys.settrace(None)
--- 1226,1229 ----