summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-04-09 19:36:34 (GMT)
committerGuido van Rossum <guido@python.org>2003-04-09 19:36:34 (GMT)
commited538d8b39addebb182de0bc465206dd7e122d0c (patch)
treee4611d10438b3062dad43d1d1856a5acd759e81c
parent2fb9fdc96a59984539d49cb45d4f87fe9490a0e1 (diff)
downloadcpython-ed538d8b39addebb182de0bc465206dd7e122d0c.zip
cpython-ed538d8b39addebb182de0bc465206dd7e122d0c.tar.gz
cpython-ed538d8b39addebb182de0bc465206dd7e122d0c.tar.bz2
Detabified.
Removed dead code.
-rwxr-xr-xLib/pdb.py25
1 files changed, 5 insertions, 20 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 46dff55..c4d789e 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -527,29 +527,14 @@ class Pdb(bdb.Bdb, cmd.Cmd):
sys.settrace(None)
globals = self.curframe.f_globals
locals = self.curframe.f_locals
- p = Pdb()
- p.prompt = "(%s) " % self.prompt.strip()
- print "ENTERING RECURSIVE DEBUGGER"
- sys.call_tracing(p.run, (arg, globals, locals))
- print "LEAVING RECURSIVE DEBUGGER"
+ p = Pdb()
+ p.prompt = "(%s) " % self.prompt.strip()
+ print "ENTERING RECURSIVE DEBUGGER"
+ sys.call_tracing(p.run, (arg, globals, locals))
+ print "LEAVING RECURSIVE DEBUGGER"
sys.settrace(self.trace_dispatch)
self.lastcmd = p.lastcmd
- def dont_debug(self, arg):
- locals = self.curframe.f_locals
- globals = self.curframe.f_globals
- try:
- r = sys.call_tracing(eval, (arg, globals, locals))
- print "--- DEBUG RETURNED ---"
- if r is not None:
- print repr(r)
- except:
- t, v = sys.exc_info()[:2]
- if type(t) == type(''):
- exc_type_name = t
- else: exc_type_name = t.__name__
- print '***', exc_type_name + ':', v
-
def do_quit(self, arg):
self.set_quit()
return 1