Skip to content

Commit

Permalink
Remove deprecated function (#14388)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Carreau committed Apr 2, 2024
2 parents a3074b8 + fe5f2df commit 86d864e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions IPython/core/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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+')


Expand Down

0 comments on commit 86d864e

Please sign in to comment.