Kaydet (Commit) f15a59fd authored tarafından Brett Cannon's avatar Brett Cannon

Issue #17177: Stop using imp in sysconfig

üst 82d21076
...@@ -383,8 +383,8 @@ def _generate_posix_vars(): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment