mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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.
|
||||
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…
Add table
Add a link
Reference in a new issue