mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	gh-97850: Update the deprecation warning of importlib.abc.Loader.load_module (GH-129855)
				
					
				
			This commit is contained in:
		
							parent
							
								
									5cdd6e5e75
								
							
						
					
					
						commit
						aa81a6f6e4
					
				
					 5 changed files with 13 additions and 8 deletions
				
			
		|  | @ -526,7 +526,7 @@ def _load_module_shim(self, fullname): | |||
| 
 | ||||
|     """ | ||||
|     msg = ("the load_module() method is deprecated and slated for removal in " | ||||
|           "Python 3.12; use exec_module() instead") | ||||
|            "Python 3.15; use exec_module() instead") | ||||
|     _warnings.warn(msg, DeprecationWarning) | ||||
|     spec = spec_from_loader(fullname, self) | ||||
|     if fullname in sys.modules: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tomas R.
						Tomas R.