[Python-checkins] distutils2: Forgot one instance of wrong import in 088dbb97fd18, oops!

tarek.ziade python-checkins at python.org
Sun Dec 26 14:21:44 CET 2010


tarek.ziade pushed a8eaafda8fd3 to distutils2:

http://hg.python.org/distutils2/rev/a8eaafda8fd3
changeset:   836:a8eaafda8fd3
user:        ?ric Araujo <merwok at netwok.org>
date:        Tue Nov 16 06:54:31 2010 +0100
summary:
  Forgot one instance of wrong import in 088dbb97fd18, oops!

files:
  distutils2/tests/test_command_build_ext.py

diff --git a/distutils2/tests/test_command_build_ext.py b/distutils2/tests/test_command_build_ext.py
--- a/distutils2/tests/test_command_build_ext.py
+++ b/distutils2/tests/test_command_build_ext.py
@@ -103,10 +103,7 @@
         old = sys.platform
 
         sys.platform = 'sunos' # fooling finalize_options
-        try:
-            from sysconfig import _CONFIG_VARS
-        except ImportError:
-            from distutils2._backport.sysconfig import _CONFIG_VARS
+        from distutils2._backport.sysconfig import _CONFIG_VARS
 
         old_var = _CONFIG_VARS.get('Py_ENABLE_SHARED')
         _CONFIG_VARS['Py_ENABLE_SHARED'] = 1

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


More information about the Python-checkins mailing list