gh-117953: Small Cleanup of Extensions-Related Machinery Code (gh-118167)

This is a collection of very basic cleanups I've pulled out of gh-118116.  It is mostly renaming variables and moving a couple bits of code in functionally equivalent ways.
This commit is contained in:
Eric Snow 2024-04-23 08:25:50 -06:00 • committed by GitHub
parent d0b664ee06
commit 23950beff8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 106 additions and 76 deletions

View file

@ -22,6 +22,7 @@ extern int _PyImport_SetModuleString(const char *name, PyObject* module);
extern void _PyImport_AcquireLock(PyInterpreterState *interp);
extern int _PyImport_ReleaseLock(PyInterpreterState *interp);
// This is used exclusively for the sys and builtins modules:
extern int _PyImport_FixupBuiltin(
PyObject *mod,
const char *name, /* UTF-8 encoded string */