Commit ed538d8b authored by Guido van Rossum's avatar Guido van Rossum

Detabified.

Removed dead code.
parent 2fb9fdc9
...@@ -535,21 +535,6 @@ class Pdb(bdb.Bdb, cmd.Cmd): ...@@ -535,21 +535,6 @@ class Pdb(bdb.Bdb, cmd.Cmd):
sys.settrace(self.trace_dispatch) sys.settrace(self.trace_dispatch)
self.lastcmd = p.lastcmd 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): def do_quit(self, arg):
self.set_quit() self.set_quit()
return 1 return 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment