summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-15 18:32:11 (GMT)
committerBrett Cannon <brett@python.org>2013-06-15 18:32:11 (GMT)
commitf15a59fdf3e6b99b1859df97713fe4d1870fa936 (patch)
tree961180bf98d44ddfeb1bb6a7dcc2cdcd9e955fcc /Lib
parent82d2107668c5e8ba803673b3ec4d35f21decd3fd (diff)
downloadcpython-f15a59fdf3e6b99b1859df97713fe4d1870fa936.zip
cpython-f15a59fdf3e6b99b1859df97713fe4d1870fa936.tar.gz
cpython-f15a59fdf3e6b99b1859df97713fe4d1870fa936.tar.bz2
Issue #17177: Stop using imp in sysconfig
Diffstat (limited to 'Lib')
-rw-r--r--Lib/sysconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index 2095657..ee38a20 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