mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (#103339)
This commit is contained in:
		
							parent
							
								
									68dfa49627
								
							
						
					
					
						commit
						3ee921d84f
					
				
					 4 changed files with 21 additions and 51 deletions
				
			
		|  | @ -622,7 +622,7 @@ def get_the_completion_list(self, what, mode): | |||
| 
 | ||||
|     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 | ||||
|  | @ -630,9 +630,8 @@ def stackviewer(self, flist_oid=None): | |||
|             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) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Irit Katriel
						Irit Katriel