mirror of
https://github.com/python/cpython.git
synced 2025-11-19 02:39:15 +00:00
Minor code simplification
This commit is contained in:
parent
ced7eda717
commit
1329185890
1 changed files with 2 additions and 3 deletions
|
|
@ -18,8 +18,7 @@ _CONFIG_VARS = get_config_vars()
|
||||||
|
|
||||||
|
|
||||||
def _make_ext_name(modname):
|
def _make_ext_name(modname):
|
||||||
if os.name == 'nt':
|
if os.name == 'nt' and sys.executable.endswith('_d.exe'):
|
||||||
if sys.executable.endswith('_d.exe'):
|
|
||||||
modname += '_d'
|
modname += '_d'
|
||||||
return modname + get_config_var('SO')
|
return modname + get_config_var('SO')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue