[Python-checkins] cpython: Minor code simplification

eric.araujo python-checkins at python.org
Fri Aug 26 16:32:34 CEST 2011


http://hg.python.org/cpython/rev/a81c2b579dd4
changeset:   72077:a81c2b579dd4
parent:      72073:262e03bbe7a9
user:        Éric Araujo <merwok at netwok.org>
date:        Fri Aug 26 00:05:11 2011 +0200
summary:
  Minor code simplification

files:
  Lib/packaging/tests/test_command_install_dist.py |  5 ++---
  1 files changed, 2 insertions(+), 3 deletions(-)


diff --git a/Lib/packaging/tests/test_command_install_dist.py b/Lib/packaging/tests/test_command_install_dist.py
--- a/Lib/packaging/tests/test_command_install_dist.py
+++ b/Lib/packaging/tests/test_command_install_dist.py
@@ -18,9 +18,8 @@
 
 
 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')
 
 

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


More information about the Python-checkins mailing list