Ticket #9115: check_for_unlink_in_temp.patch

File check_for_unlink_in_temp.patch, 466 bytes (added by Michael Hart, 16 years ago)
  • core/files/temp.py

     
    1414
    1515__all__ = ('NamedTemporaryFile', 'gettempdir',)
    1616
    17 if os.name == 'nt':
     17if os.name == 'nt' and hasattr(os, 'unlink') and hasattr(os, 'fdopen'):
    1818    class TemporaryFile(object):
    1919        """
    2020        Temporary file object constructor that works in Windows and supports
Back to Top