Changeset 10 for python/trunk/Lib/tempfile.py
- Timestamp:
- Sep 3, 2010, 5:33:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk/Lib/tempfile.py
r2 r10 388 388 # the wrapper to do anything special. We still use it so that 389 389 # file.name is useful (i.e. not "(fdopen)") with NamedTemporaryFile. 390 if _os.name != 'nt' :390 if _os.name != 'nt' and _os.name != 'os2': 391 391 # Cache the unlinker so we don't get spurious errors at 392 392 # shutdown when the module-level "os" is None'd out. Note … … 446 446 return _TemporaryFileWrapper(file, name, delete) 447 447 448 if _os.name != 'posix' or _os.sys.platform == 'cygwin' :448 if _os.name != 'posix' or _os.sys.platform == 'cygwin' or _os.sys.platform == 'os2emx' or _os.sys.platform == 'os2knix': 449 449 # On non-POSIX and Cygwin systems, assume that we cannot unlink a file 450 450 # while it is open.
Note:
See TracChangeset
for help on using the changeset viewer.