Mercurial > cpython-lru_cache-weakref
diff Mac/Tools/IDE/PyDebugger.py @ 22211:239269c96514 2.2
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.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Sun, 10 Mar 2002 21:29:55 +0000 |
| parents | 41b8d66730d6 |
| children | 2b1701cd4566 |
line wrap: on
line diff
--- a/Mac/Tools/IDE/PyDebugger.py Fri Mar 08 22:02:17 2002 +0000 +++ b/Mac/Tools/IDE/PyDebugger.py Sun Mar 10 21:29:55 2002 +0000 @@ -496,7 +496,8 @@ 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 @@ 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
