]> granicus.if.org Git - python/commitdiff
Issue #17177: Stop using imp in sysconfig
authorBrett Cannon <brett@python.org>
Sat, 15 Jun 2013 18:32:11 +0000 (14:32 -0400)
committerBrett Cannon <brett@python.org>
Sat, 15 Jun 2013 18:32:11 +0000 (14:32 -0400)
Lib/sysconfig.py

index 20956573587a2077365a6c88789f25d10f1da4ce..ee38a20daa2dfd36335cedacea822956de276e20 100644 (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