diff --git a/Lib/pdb.py b/Lib/pdb.py index 160a7043a30c55..38a2fbceccc82b 100644 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -1971,12 +1971,6 @@ def do_list(self, arg): if last is None: last = first + 10 filename = self.curframe.f_code.co_filename - # gh-93696: stdlib frozen modules provide a useful __file__ - # this workaround can be removed with the closure of gh-89815 - if filename.startswith(" def func():', stdout, "stack entry not found") def test_empty_file(self): script = '' diff --git a/Misc/NEWS.d/next/Library/2025-04-24-01-03-40.gh-issue-93696.kM-MBp.rst b/Misc/NEWS.d/next/Library/2025-04-24-01-03-40.gh-issue-93696.kM-MBp.rst new file mode 100644 index 00000000000000..61448a85a3db55 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-24-01-03-40.gh-issue-93696.kM-MBp.rst @@ -0,0 +1 @@ +Fixed the breakpoint display error for frozen modules in :mod:`pdb`.