Update of /cvsroot/python/python/dist/src/Lib In directory usw-pr-cvs1:/tmp/cvs-serv24338 Modified Files: os.py Removed Files: dospath.py Log Message: Remove more DOS support. Index: os.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/os.py,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** os.py 7 Sep 2002 04:48:03 -0000 1.62 --- os.py 9 Oct 2002 17:23:29 -0000 1.63 *************** *** 2,8 **** 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' - os.curdir is a string representing the current directory ('.' or ':') - os.pardir is a string representing the parent directory ('..' or '::') --- 2,8 ---- This exports: ! - 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 '::') *************** *** 75,96 **** 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' --- 75,78 ---- *************** *** 366,373 **** # Fake unsetenv() for Windows ! # not sure about os2 and dos here but # I'm guessing they are the same. ! if name in ('os2', 'nt', 'dos'): def unsetenv(key): putenv(key, "") --- 348,355 ---- # Fake unsetenv() for Windows ! # not sure about os2 here but # I'm guessing they are the same. ! if name in ('os2', 'nt'): def unsetenv(key): putenv(key, "") *************** *** 376,380 **** # 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 # But we store them as upper case class _Environ(UserDict.IterableUserDict): --- 358,362 ---- # On RISC OS, all env access goes through getenv and putenv from riscosenviron import _Environ ! elif name in ('os2', 'nt'): # Where Env Var Names Must Be UPPERCASE # But we store them as upper case class _Environ(UserDict.IterableUserDict): --- dospath.py DELETED ---
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4