mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
Issue #17177: Stop using imp in sysconfig
This commit is contained in:
parent
82d2107668
commit
f15a59fdf3
1 changed files with 2 additions and 2 deletions
|
|
@ -383,8 +383,8 @@ def _generate_posix_vars():
|
||||||
# get_platform() succeeds.
|
# get_platform() succeeds.
|
||||||
name = '_sysconfigdata'
|
name = '_sysconfigdata'
|
||||||
if 'darwin' in sys.platform:
|
if 'darwin' in sys.platform:
|
||||||
import imp
|
import types
|
||||||
module = imp.new_module(name)
|
module = types.ModuleType(name)
|
||||||
module.build_time_vars = vars
|
module.build_time_vars = vars
|
||||||
sys.modules[name] = module
|
sys.modules[name] = module
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue