summaryrefslogtreecommitdiffstats
path: root/Lib/packaging
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-25 22:05:11 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-25 22:05:11 (GMT)
commit1329185890e4474d817f3c5d4df1aee70c29d35b (patch)
treea89cc2c906d22d2d2cfe1784bc0c8800410f0ecf /Lib/packaging
parentced7eda71721b595544e56484e6e08a34ae2311d (diff)
downloadcpython-1329185890e4474d817f3c5d4df1aee70c29d35b.zip
cpython-1329185890e4474d817f3c5d4df1aee70c29d35b.tar.gz
cpython-1329185890e4474d817f3c5d4df1aee70c29d35b.tar.bz2
Minor code simplification
Diffstat (limited to 'Lib/packaging')
-rw-r--r--Lib/packaging/tests/test_command_install_dist.py5
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
index 61270af..8f90aff 100644
--- a/Lib/packaging/tests/test_command_install_dist.py
+++ b/Lib/packaging/tests/test_command_install_dist.py
@@ -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')