diff options
author | Larry Hastings <larry@hastings.org> | 2016-09-05 22:11:23 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2016-09-05 22:11:23 (GMT) |
commit | 10108a7b9affa61719a1dc1863edb2bdb3402fd1 (patch) | |
tree | f36ecf8b8a8974ac2e2659e97f6bd8a111149a29 /Lib/os.py | |
parent | 8c21ab0ab92d7f10a7ada9d5f157ee69c9095e63 (diff) | |
download | cpython-10108a7b9affa61719a1dc1863edb2bdb3402fd1.zip cpython-10108a7b9affa61719a1dc1863edb2bdb3402fd1.tar.gz cpython-10108a7b9affa61719a1dc1863edb2bdb3402fd1.tar.bz2 |
Issue #27355: Removed support for Windows CE. It was never finished,
and Windows CE is no longer a relevant platform for Python.
Diffstat (limited to 'Lib/os.py')
-rw-r--r-- | Lib/os.py | 25 |
1 files changed, 2 insertions, 23 deletions
@@ -1,9 +1,9 @@ r"""OS routines for NT or Posix depending on what system we're on. This exports: - - all functions from posix, nt or ce, e.g. unlink, stat, etc. + - all functions from posix or nt, e.g. unlink, stat, etc. - os.path is either posixpath or ntpath - - os.name is either 'posix', 'nt' or 'ce'. + - os.name is either 'posix' or 'nt' - os.curdir is a string representing the current directory ('.' or ':') - os.pardir is a string representing the parent directory ('..' or '::') - os.sep is the (or a most common) pathname separator ('/' or ':' or '\\') @@ -85,27 +85,6 @@ elif 'nt' in _names: except ImportError: pass -elif 'ce' in _names: - name = 'ce' - linesep = '\r\n' - from ce import * - try: - from ce import _exit - __all__.append('_exit') - except ImportError: - pass - # We can use the standard Windows path. - import ntpath as path - - import ce - __all__.extend(_get_exports_list(ce)) - del ce - - try: - from ce import _have_functions - except ImportError: - pass - else: raise ImportError('no os specific module found') |