From: Éric Araujo Date: Thu, 25 Aug 2011 22:03:22 +0000 (+0200) Subject: Turn two ifs into one in the code I commited a few days ago X-Git-Tag: v3.2.3rc1~618 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c686167298830f551010e998e6442282eb42baed;p=thirdparty%2FPython%2Fcpython.git Turn two ifs into one in the code I commited a few days ago --- diff --git a/Lib/distutils/tests/test_install.py b/Lib/distutils/tests/test_install.py index 5c105af95ae3..dfc46b197b85 100644 --- a/Lib/distutils/tests/test_install.py +++ b/Lib/distutils/tests/test_install.py @@ -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')