[Python-checkins] cpython: Issue #17177: Stop using imp in sysconfig

brett.cannon python-checkins at python.org
Sat Jun 15 20:32:21 CEST 2013


http://hg.python.org/cpython/rev/1e141c2cc0d7
changeset:   84150:1e141c2cc0d7
user:        Brett Cannon <brett at python.org>
date:        Sat Jun 15 14:32:11 2013 -0400
summary:
  Issue #17177: Stop using imp in sysconfig

files:
  Lib/sysconfig.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -383,8 +383,8 @@
     # 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
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list