diff options
| author | Tim Peters <tim.peters@gmail.com> | 2003-01-08 21:20:57 (GMT) |
|---|---|---|
| committer | Tim Peters <tim.peters@gmail.com> | 2003-01-08 21:20:57 (GMT) |
| commit | 6757c1e8565262cdc234de3370c4747927a72f72 (patch) | |
| tree | 37f37e24178c7a44e6cb167693f72f1c78d80a59 /Lib/os.py | |
| parent | 7d4b315cca7e4679fd6d4128045437e9b361b563 (diff) | |
| download | cpython-6757c1e8565262cdc234de3370c4747927a72f72.zip cpython-6757c1e8565262cdc234de3370c4747927a72f72.tar.gz cpython-6757c1e8565262cdc234de3370c4747927a72f72.tar.bz2 | |
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.
Diffstat (limited to 'Lib/os.py')
| -rw-r--r-- | Lib/os.py | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -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 |
