Ignore:
Timestamp:
Sep 3, 2010, 5:33:06 PM (15 years ago)
Author:
Yuri Dario
Message:

python: merged offline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/Lib/tempfile.py

    r2 r10  
    388388    # the wrapper to do anything special.  We still use it so that
    389389    # file.name is useful (i.e. not "(fdopen)") with NamedTemporaryFile.
    390     if _os.name != 'nt':
     390    if _os.name != 'nt' and _os.name != 'os2':
    391391        # Cache the unlinker so we don't get spurious errors at
    392392        # shutdown when the module-level "os" is None'd out.  Note
     
    446446    return _TemporaryFileWrapper(file, name, delete)
    447447
    448 if _os.name != 'posix' or _os.sys.platform == 'cygwin':
     448if _os.name != 'posix' or _os.sys.platform == 'cygwin' or _os.sys.platform == 'os2emx' or _os.sys.platform == 'os2knix':
    449449    # On non-POSIX and Cygwin systems, assume that we cannot unlink a file
    450450    # while it is open.
Note: See TracChangeset for help on using the changeset viewer.