mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	rename _imp initialization function to follow conventions (#5432)
When the C imp module became _imp in 6f44d66bc4, the initialization function should have been renamed from PyInit_imp to PyInit__imp.
			
			
This commit is contained in:
		
							parent
							
								
									2a2270db9b
								
							
						
					
					
						commit
						c65ef772c3
					
				
					 5 changed files with 7 additions and 8 deletions
				
			
		|  | @ -1,4 +1,3 @@ | |||
| 
 | ||||
| /* Module definition and import implementation */ | ||||
| 
 | ||||
| #include "Python.h" | ||||
|  | @ -2253,7 +2252,7 @@ static struct PyModuleDef impmodule = { | |||
| const char *_Py_CheckHashBasedPycsMode = "default"; | ||||
| 
 | ||||
| PyMODINIT_FUNC | ||||
| PyInit_imp(void) | ||||
| PyInit__imp(void) | ||||
| { | ||||
|     PyObject *m, *d; | ||||
| 
 | ||||
|  |  | |||
|  | @ -312,7 +312,7 @@ initimport(PyInterpreterState *interp, PyObject *sysmod) | |||
|     Py_INCREF(interp->import_func); | ||||
| 
 | ||||
|     /* Import the _imp module */ | ||||
|     impmod = PyInit_imp(); | ||||
|     impmod = PyInit__imp(); | ||||
|     if (impmod == NULL) { | ||||
|         return _Py_INIT_ERR("can't import _imp"); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson