summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 4876539..5d6bc64 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -61,11 +61,10 @@ elif 'nt' in _names:
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
defpath = '.;C:\\bin'
from nt import *
- for i in ['_exit']:
- try:
- exec "from nt import " + i
- except ImportError:
- pass
+ try:
+ from nt import _exit
+ except ImportError:
+ pass
import ntpath
path = ntpath
del ntpath
@@ -127,11 +126,10 @@ elif 'ce' in _names:
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
defpath = '\\Windows'
from ce import *
- for i in ['_exit']:
- try:
- exec "from ce import " + i
- except ImportError:
- pass
+ try:
+ from ce import _exit
+ except ImportError:
+ pass
# We can use the standard Windows path.
import ntpath
path = ntpath