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

Skip to content

Commit 1329185

Browse files
committed
Minor code simplification
1 parent ced7eda commit 1329185

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/packaging/tests/test_command_install_dist.py

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

1919

2020
def _make_ext_name(modname):
21-
if os.name == 'nt':
22-
if sys.executable.endswith('_d.exe'):
23-
modname += '_d'
21+
if os.name == 'nt' and sys.executable.endswith('_d.exe'):
22+
modname += '_d'
2423
return modname + get_config_var('SO')
2524

2625

0 commit comments

Comments
 (0)