[Python-checkins] cpython (3.2): Turn two ifs into one in the code I commited a few days ago
eric.araujo
python-checkins at python.org
Fri Aug 26 16:32:35 CEST 2011
http://hg.python.org/cpython/rev/bca692244030
changeset: 72078:bca692244030
branch: 3.2
parent: 72068:0abe03195d09
user: Éric Araujo <merwok at netwok.org>
date: Fri Aug 26 00:03:22 2011 +0200
summary:
Turn two ifs into one in the code I commited a few days ago
files:
Lib/distutils/tests/test_install.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Lib/distutils/tests/test_install.py b/Lib/distutils/tests/test_install.py
--- a/Lib/distutils/tests/test_install.py
+++ b/Lib/distutils/tests/test_install.py
@@ -20,9 +20,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 + sysconfig.get_config_var('SO')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list