SF patch 661583: Remove old code from lib\os.py
A patch from Andrew Wilkinson to change some bizarre old exec statements specific to NT and CE.
This commit is contained in:
parent
7d4b315cca
commit
6757c1e856
@ -61,9 +61,8 @@ elif 'nt' in _names:
|
|||||||
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
|
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
|
||||||
defpath = '.;C:\\bin'
|
defpath = '.;C:\\bin'
|
||||||
from nt import *
|
from nt import *
|
||||||
for i in ['_exit']:
|
|
||||||
try:
|
try:
|
||||||
exec "from nt import " + i
|
from nt import _exit
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
import ntpath
|
import ntpath
|
||||||
@ -127,9 +126,8 @@ elif 'ce' in _names:
|
|||||||
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
|
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
|
||||||
defpath = '\\Windows'
|
defpath = '\\Windows'
|
||||||
from ce import *
|
from ce import *
|
||||||
for i in ['_exit']:
|
|
||||||
try:
|
try:
|
||||||
exec "from ce import " + i
|
from ce import _exit
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
# We can use the standard Windows path.
|
# We can use the standard Windows path.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user