mirror of
https://github.com/python/cpython.git
synced 2025-09-12 11:46:52 +00:00
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. These shouldn't interfere too much with Just's work on the next generation IDE, I hope.
This commit is contained in:
parent
c71efe0116
commit
815d2bf067
8 changed files with 71 additions and 38 deletions
|
@ -496,7 +496,8 @@ class Debugger(bdb.Bdb):
|
|||
self.w.panes.bottom.tracingmonitor.toggle()
|
||||
try:
|
||||
try:
|
||||
MacOS.EnableAppswitch(0)
|
||||
if hasattr(MacOS, 'EnableAppswitch'):
|
||||
MacOS.EnableAppswitch(0)
|
||||
if self.quitting:
|
||||
# returning None is not enough, a former BdbQuit exception
|
||||
# might have been eaten by the print statement
|
||||
|
@ -512,7 +513,8 @@ class Debugger(bdb.Bdb):
|
|||
print 'bdb.Bdb.dispatch: unknown debugging event:', `event`
|
||||
return self.trace_dispatch
|
||||
finally:
|
||||
MacOS.EnableAppswitch(-1)
|
||||
if hasattr(MacOS, 'EnableAppswitch'):
|
||||
MacOS.EnableAppswitch(-1)
|
||||
except KeyboardInterrupt:
|
||||
self.set_step()
|
||||
return self.trace_dispatch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue