From: Brett Cannon Date: Sat, 15 Jun 2013 18:32:11 +0000 (-0400) Subject: Issue #17177: Stop using imp in sysconfig X-Git-Tag: v3.4.0a1~486 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f15a59fdf3e6b99b1859df97713fe4d1870fa936;p=thirdparty%2FPython%2Fcpython.git Issue #17177: Stop using imp in sysconfig --- diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 20956573587a..ee38a20daa2d 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