mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
turn this into a macro
This commit is contained in:
parent
608d8bcdfc
commit
81c447f4d8
2 changed files with 2 additions and 39 deletions
|
@ -4146,14 +4146,6 @@ PySocketModule_APIObject PySocketModuleAPI =
|
|||
NULL
|
||||
};
|
||||
|
||||
PySocketModule_APIObject *
|
||||
PySocketModule_ImportModuleAndAPI(void)
|
||||
{
|
||||
void *api;
|
||||
api = PyCapsule_Import(PySocket_CAPSULE_NAME, 1);;
|
||||
return (PySocketModule_APIObject *)api;
|
||||
}
|
||||
|
||||
|
||||
/* Initialize the _socket module.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue