(frame)
| 34 | |
| 35 | |
| 36 | def remove_exception_from_frame(frame): |
| 37 | if IS_PY313_0: |
| 38 | # In 3.13.0 frame.f_locals became a proxy for a dict, It does not |
| 39 | # have methods to allow items to be removed, only added. So just set the item to None. |
| 40 | # Should be fixed in 3.13.1 in PR: https://github.com/python/cpython/pull/125616 |
| 41 | frame.f_locals["__exception__"] = None |
| 42 | else: |
| 43 | frame.f_locals.pop("__exception__", None) |
| 44 | |
| 45 | |
| 46 | FILES_WITH_IMPORT_HOOKS = ["pydev_monkey_qt.py", "pydev_import_hook.py"] |
no test coverage detected