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