cpython: 1e141c2cc0d7 (original) (raw)
Mercurial > cpython
changeset 84150:1e141c2cc0d7
Issue #17177: Stop using imp in sysconfig [#17177]
Brett Cannon brett@python.org | |
---|---|
date | Sat, 15 Jun 2013 14:32:11 -0400 |
parents | 8fff5554125d |
children | fcb686e720ff |
files | Lib/sysconfig.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-)[+] [-] Lib/sysconfig.py 4 |
line wrap: on
line diff
--- 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[](#l1.7)
module = imp.new_module(name)[](#l1.8)
import types[](#l1.9)
module = types.ModuleType(name)[](#l1.10) module.build_time_vars = vars[](#l1.11) sys.modules[name] = module[](#l1.12)