]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Turn two ifs into one in the code I commited a few days ago
authorÉric Araujo <merwok@netwok.org>
Thu, 25 Aug 2011 22:03:22 +0000 (00:03 +0200)
committerÉric Araujo <merwok@netwok.org>
Thu, 25 Aug 2011 22:03:22 +0000 (00:03 +0200)
Lib/distutils/tests/test_install.py

index 5c105af95ae322af6e3b412e8771c6335e8f1c40..dfc46b197b85eddb244e8a98625e3c54c92a1f2a 100644 (file)
@@ -20,9 +20,8 @@ from distutils.tests import support
 
 
 def _make_ext_name(modname):
-    if os.name == 'nt':
-        if sys.executable.endswith('_d.exe'):
-            modname += '_d'
+    if os.name == 'nt' and sys.executable.endswith('_d.exe'):
+        modname += '_d'
     return modname + sysconfig.get_config_var('SO')