mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Turn two ifs into one in the code I commited a few days ago
This commit is contained in:
parent
e1eef41a18
commit
c686167298
1 changed files with 2 additions and 3 deletions
|
@ -20,9 +20,8 @@ from distutils.tests import support
|
||||||
|
|
||||||
|
|
||||||
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 + sysconfig.get_config_var('SO')
|
return modname + sysconfig.get_config_var('SO')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue