# HG changeset patch # User Sverre Rabbelier # Date 1225736453 0 # Node ID 6db210684627d4b2b85efd9f0caef4d49b504ae0 # Parent f3c313d54aa41e0741e2c83accc8023df11ab990 Django Fix according to code.djangoproject.com/attachement/ticket/9115/check_for_unlink_in_temp.patch diff -r f3c313d54aa4 -r 6db210684627 app/django/core/files/temp.py --- a/app/django/core/files/temp.py Mon Nov 03 15:03:09 2008 +0000 +++ b/app/django/core/files/temp.py Mon Nov 03 18:20:53 2008 +0000 @@ -14,7 +14,7 @@ __all__ = ('NamedTemporaryFile', 'gettempdir',) -if os.name == 'nt': +if os.name == 'nt' and hasattr(os, 'unlink') and hasattr(os, 'fdopen'): class TemporaryFile(object): """ Temporary file object constructor that works in Windows and supports