Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c686167

Browse files
committed
Turn two ifs into one in the code I commited a few days ago
1 parent e1eef41 commit c686167

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/distutils/tests/test_install.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020

2121

2222
def _make_ext_name(modname):
23-
if os.name == 'nt':
24-
if sys.executable.endswith('_d.exe'):
25-
modname += '_d'
23+
if os.name == 'nt' and sys.executable.endswith('_d.exe'):
24+
modname += '_d'
2625
return modname + sysconfig.get_config_var('SO')
2726

2827

0 commit comments

Comments
 (0)