def BdbQuit_excepthook(et, ev, tb, excepthook=None):
 warnings.warn('`BdbQuit_excepthook` is deprecated since version 5.1', DeprecationWarning, stacklevel=2)
 if (et == bdb.BdbQuit):
  print 'Exiting Debugger.'
 elif (excepthook is not None):
  excepthook(et, ev, tb)
 else:
  BdbQuit_excepthook.excepthook_ori(et, ev, tb)

def BdbQuit_excepthook ( et , ev , tb , excepthook = None ) : warnings . warn ( '`BdbQuit_excepthook` is deprecated since version 5.1' , DeprecationWarning , stacklevel = 2 ) if ( et == bdb . BdbQuit ) : print 'Exiting Debugger.' elif ( excepthook is not None ) : excepthook ( et , ev , tb ) else : BdbQuit_excepthook . excepthook_ori ( et , ev , tb )
exception hook which handles bdbquit exceptions .