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():
# 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
......
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