mirror of
https://github.com/python/cpython.git
synced 2026-06-28 11:50:50 +00:00
gh-139227: Remove unused _PyRuntime.imports.pkgcontext (#151490)
The global variable has been replaced by a new thread local variable "pkgcontext" in Python/import.c.
This commit is contained in:
parent
0ec7c9d17e
commit
552ce57e33
2 changed files with 0 additions and 5 deletions
|
|
@ -81,8 +81,6 @@ static struct _inittab *inittab_copy = NULL;
|
|||
#define LAST_MODULE_INDEX _PyRuntime.imports.last_module_index
|
||||
#define EXTENSIONS _PyRuntime.imports.extensions
|
||||
|
||||
#define PKGCONTEXT (_PyRuntime.imports.pkgcontext)
|
||||
|
||||
|
||||
/*******************************/
|
||||
/* interpreter import state */
|
||||
|
|
@ -883,7 +881,6 @@ _PyImport_ClearModulesByIndex(PyInterpreterState *interp)
|
|||
*/
|
||||
|
||||
static _Py_thread_local const char *pkgcontext = NULL;
|
||||
# undef PKGCONTEXT
|
||||
# define PKGCONTEXT pkgcontext
|
||||
|
||||
const char *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue