summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-09 17:23:29 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-10-09 17:23:29 (GMT)
commit8b10f8988f896754b36c17700bab5e435f943385 (patch)
treeffb39a1405dda7bacc3f3d447379af458ecff055 /Lib/os.py
parentecaaf643e255df05701db21967b3cb9ce46a86a0 (diff)
downloadcpython-8b10f8988f896754b36c17700bab5e435f943385.zip
cpython-8b10f8988f896754b36c17700bab5e435f943385.tar.gz
cpython-8b10f8988f896754b36c17700bab5e435f943385.tar.bz2
Remove more DOS support.
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py30
1 files changed, 6 insertions, 24 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 1aadf1f..721cb7e 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -1,9 +1,9 @@
r"""OS routines for Mac, DOS, NT, or Posix depending on what system we're on.
This exports:
- - all functions from posix, nt, dos, os2, mac, or ce, e.g. unlink, stat, etc.
- - os.path is one of the modules posixpath, ntpath, macpath, or dospath
- - os.name is 'posix', 'nt', 'dos', 'os2', 'mac', 'ce' or 'riscos'
+ - all functions from posix, nt, os2, mac, or ce, e.g. unlink, stat, etc.
+ - os.path is one of the modules posixpath, ntpath, or macpath
+ - os.name is 'posix', 'nt', 'os2', 'mac', 'ce' or 'riscos'
- 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 '\\')
@@ -74,24 +74,6 @@ elif 'nt' in _names:
__all__.extend(_get_exports_list(nt))
del nt
-elif 'dos' in _names:
- name = 'dos'
- linesep = '\r\n'
- curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
- defpath = '.;C:\\bin'
- from dos import *
- try:
- from dos import _exit
- except ImportError:
- pass
- import dospath
- path = dospath
- del dospath
-
- import dos
- __all__.extend(_get_exports_list(dos))
- del dos
-
elif 'os2' in _names:
name = 'os2'
linesep = '\r\n'
@@ -365,17 +347,17 @@ else:
import UserDict
# Fake unsetenv() for Windows
- # not sure about os2 and dos here but
+ # not sure about os2 here but
# I'm guessing they are the same.
- if name in ('os2', 'nt', 'dos'):
+ if name in ('os2', 'nt'):
def unsetenv(key):
putenv(key, "")
if name == "riscos":
# On RISC OS, all env access goes through getenv and putenv
from riscosenviron import _Environ
- elif name in ('os2', 'nt', 'dos'): # Where Env Var Names Must Be UPPERCASE
+ elif name in ('os2', 'nt'): # Where Env Var Names Must Be UPPERCASE
# But we store them as upper case
class _Environ(UserDict.IterableUserDict):
def __init__(self, environ):