From: Éric Araujo Date: Thu, 25 Aug 2011 22:05:11 +0000 (+0200) Subject: Minor code simplification X-Git-Tag: v3.3.0a1~1615^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1329185890e4474d817f3c5d4df1aee70c29d35b;p=thirdparty%2FPython%2Fcpython.git Minor code simplification --- diff --git a/Lib/packaging/tests/test_command_install_dist.py b/Lib/packaging/tests/test_command_install_dist.py index 61270afa1d99..8f90aff97ef8 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')