From 86d864e60df5782f81141b37e19c05700d6faf9a 2024-04-02 15:23:09 From: M Bussonnier Date: 2024-04-02 15:23:09 Subject: [PATCH] Remove deprecated function (#14388) Th second function BdbQuit_IPython_excepthook is wrong anyway as when we moved from warning to error we did not remove stacklevel= ... which is invalid. --- diff --git a/IPython/core/debugger.py b/IPython/core/debugger.py index fde44f3..a5d6431 100644 --- a/IPython/core/debugger.py +++ b/IPython/core/debugger.py @@ -149,23 +149,6 @@ def make_arrow(pad): return '' -def BdbQuit_excepthook(et, ev, tb, excepthook=None): - """Exception hook which handles `BdbQuit` exceptions. - - All other exceptions are processed using the `excepthook` - parameter. - """ - raise ValueError( - "`BdbQuit_excepthook` is deprecated since version 5.1", - ) - - -def BdbQuit_IPython_excepthook(self, et, ev, tb, tb_offset=None): - raise ValueError( - "`BdbQuit_IPython_excepthook` is deprecated since version 5.1", - DeprecationWarning, stacklevel=2) - - RGX_EXTRA_INDENT = re.compile(r'(?<=\n)\s+')