Issue #17177: Stop using imp in sysconfig

This commit is contained in:
Brett Cannon 2013-06-15 14:32:11 -04:00
parent 82d2107668
commit f15a59fdf3
1 changed files with 2 additions and 2 deletions

View File

@ -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