From: Guido van Rossum Date: Mon, 22 Feb 1999 15:40:34 +0000 (+0000) Subject: As Finn Bock points out, _P_WAIT etc. don't have a leading underscore X-Git-Tag: v1.5.2c1~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb801e7d338b3b3c8a919a5aca78250a2ad04da5;p=thirdparty%2FPython%2Fcpython.git As Finn Bock points out, _P_WAIT etc. don't have a leading underscore so they don't need to be treated specially here. --- diff --git a/Lib/os.py b/Lib/os.py index a8a08ed43aa6..a4d07c932f16 100644 --- a/Lib/os.py +++ b/Lib/os.py @@ -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: