Issue #17177: Stop using imp in sysconfig
This commit is contained in:
parent
82d2107668
commit
f15a59fdf3
|
@ -383,8 +383,8 @@ def _generate_posix_vars():
|
|||
# get_platform() succeeds.
|
||||
name = '_sysconfigdata'
|
||||
if 'darwin' in sys.platform:
|
||||
import imp
|
||||
module = imp.new_module(name)
|
||||
import types
|
||||
module = types.ModuleType(name)
|
||||
module.build_time_vars = vars
|
||||
sys.modules[name] = module
|
||||
|
||||
|
|
Loading…
Reference in New Issue