mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Issue #13959: Add to imp.find_module() and load_module's docstrings
that they are deprecated (previous commit documented this fact in the module docs).
This commit is contained in:
		
							parent
							
								
									47b3239cc6
								
							
						
					
					
						commit
						0450c9ed52
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		
							
								
								
									
										10
									
								
								Lib/imp.py
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								Lib/imp.py
									
										
									
									
									
								
							| 
						 | 
					@ -150,9 +150,10 @@ def load_package(name, path):
 | 
				
			||||||
    return _bootstrap.SourceFileLoader(name, path).load_module(name)
 | 
					    return _bootstrap.SourceFileLoader(name, path).load_module(name)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# XXX deprecate
 | 
					 | 
				
			||||||
def load_module(name, file, filename, details):
 | 
					def load_module(name, file, filename, details):
 | 
				
			||||||
    """Load a module, given information returned by find_module().
 | 
					    """**DEPRECATED**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Load a module, given information returned by find_module().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    The module name must include the full package name, if any.
 | 
					    The module name must include the full package name, if any.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -180,9 +181,10 @@ def load_module(name, file, filename, details):
 | 
				
			||||||
            raise ImportError(msg, name=name)
 | 
					            raise ImportError(msg, name=name)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# XXX deprecate
 | 
					 | 
				
			||||||
def find_module(name, path=None):
 | 
					def find_module(name, path=None):
 | 
				
			||||||
    """Search for a module.
 | 
					    """**DEPRECATED**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Search for a module.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    If path is omitted or None, search for a built-in, frozen or special
 | 
					    If path is omitted or None, search for a built-in, frozen or special
 | 
				
			||||||
    module and continue search in sys.path. The module name cannot
 | 
					    module and continue search in sys.path. The module name cannot
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue