As Finn Bock points out, _P_WAIT etc. don't have a leading underscore

so they don't need to be treated specially here.
This commit is contained in:
Guido van Rossum 1999-02-22 15:40:34 +00:00
parent 0df2188d08
commit fb801e7d33

View File

@ -42,9 +42,7 @@ elif 'nt' in _names:
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
defpath = '.;C:\\bin'
from nt import *
for i in ['_exit',
'_P_WAIT', '_P_NOWAIT', '_P_OVERLAY',
'_P_NOWAITO', '_P_DETACH']:
for i in ['_exit']:
try:
exec "from nt import " + i
except ImportError: