diff options
author | Brett Cannon <brett@python.org> | 2013-06-15 14:32:11 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-15 14:32:11 -0400 |
commit | dca8a0083d211c6de1397f1784f4e82270d51401 (patch) | |
tree | e05f65b47abdbe74d50c1bc8b47dc65eec9dec51 /Lib/sysconfig.py | |
parent | 9f2a776d4e8c98c4d1600c4acc8a9ee86343991e (diff) | |
download | cpython-dca8a0083d211c6de1397f1784f4e82270d51401.tar.gz |
Issue #17177: Stop using imp in sysconfig
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r-- | Lib/sysconfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 2095657358..ee38a20daa 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -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 |