diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-06-08 20:48:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 20:48:10 (GMT) |
commit | c2df09fb4d152fd0748790af38668841e4faca93 (patch) | |
tree | d6b1dd5c914df5caf67d18e8ee64ee98863b2854 /Lib/idlelib/run.py | |
parent | b073b30cae0deb36b01363346d9b128930ef0f35 (diff) | |
download | cpython-c2df09fb4d152fd0748790af38668841e4faca93.zip cpython-c2df09fb4d152fd0748790af38668841e4faca93.tar.gz cpython-c2df09fb4d152fd0748790af38668841e4faca93.tar.bz2 |
[3.11] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (GH-103339) (#105527)
gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (GH-103339)
(cherry picked from commit 3ee921d84f06da9dfa8aa29e0d33778b9dbf8f23)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Diffstat (limited to 'Lib/idlelib/run.py')
-rw-r--r-- | Lib/idlelib/run.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 9eeaaa3..59198b6 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -621,7 +621,7 @@ class Executive: def stackviewer(self, flist_oid=None): if self.user_exc_info: - typ, val, tb = self.user_exc_info + _, exc, tb = self.user_exc_info else: return None flist = None @@ -629,9 +629,8 @@ class Executive: flist = self.rpchandler.get_remote_proxy(flist_oid) while tb and tb.tb_frame.f_globals["__name__"] in ["rpc", "run"]: tb = tb.tb_next - sys.last_type = typ - sys.last_value = val - item = stackviewer.StackTreeItem(flist, tb) + exc.__traceback__ = tb + item = stackviewer.StackTreeItem(exc, flist) return debugobj_r.remote_object_tree_item(item) |