]> granicus.if.org Git - python/commitdiff
Minor code simplification
authorÉric Araujo <merwok@netwok.org>
Thu, 25 Aug 2011 22:05:11 +0000 (00:05 +0200)
committerÉric Araujo <merwok@netwok.org>
Thu, 25 Aug 2011 22:05:11 +0000 (00:05 +0200)
Lib/packaging/tests/test_command_install_dist.py

index 61270afa1d9992f1afad04793d675992f0a19a62..8f90aff97ef85ed3e1506fdd0c41a5de48442ff9 100644 (file)
@@ -18,9 +18,8 @@ _CONFIG_VARS = get_config_vars()
 
 
 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 + get_config_var('SO')