summaryrefslogtreecommitdiff
path: root/django/core/files/temp.py
AgeCommit message (Collapse)Author
2024-07-22Fixed broken link in django.core.files.temp docstring.Ellen
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2019-01-28Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne
Used more specific errors (e.g. FileExistsError) as appropriate.
2018-09-26Refs #29784 -- Switched to https:// links where available.Jon Dufresne
2017-09-13Removed unnecessary parens in various code.Mariusz Felisiak
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2016-06-15Fixed broken links in docs and comments.Ville Skyttä
2016-05-27Fixed #26646 -- Added IOBase methods required by TextIOWrapper to File.Simon Charette
Thanks Tim for the review.
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-08-29Clarified a comment in django.core.files.temp.Tim Graham
2014-06-12Made the vendored NamedTemporaryFile work as a context manager. Refs #22680.Loic Bistuer
This fixes a regression on Windows introduced by b7de5f5. Thanks Tim Graham for the report and review.
2013-09-19Fixed #18744 -- Updated docstring to highlight limitations of NamedTemporaryFileKevin Christopher Henry
- Noted that this does not allow for reading and writing the same open file in different processes under Windows. - Noted that the keyword arguments to NamedTemporaryFile no longer match the Python version.
2013-09-06Fixed #11857 -- Added missing 'closed' property on TemporaryFile class.Christopher Adams
- TemporaryFile now minimally mocks the API of the Python standard library class tempfile.NamedTemporaryFile to avoid AttributeError exceptions. - The symbol django.core.files.NamedTemporaryFile is actually assigned as a different class on different operating systems. - The bug only occurred if Django is running on Windows, hence why it was hard to diagnose.
2009-05-08Fixed #7712, #9404, #10249, #10300: a light refactor and cleanup of file ↵Jacob Kaplan-Moss
storage and the `File` object. Thanks to Armin Ronacher and Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-08Fixed #9344 -- In the `TemporaryFile` class used by Windows, proxy to the ↵Gary Wilson Jr
wrapped file object. Thanks julien and mitsuhiko. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #8203 -- Fixed temporary file deleation on Windows and a couple of edgeMalcolm Tredinnick
cases on Unix-like systems. Patch from snaury. Testing and verification on Windows, Mac and Linux from cgrady and ramikassab. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8493 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26Fixed #7658 -- Added some Windows-specific tempfile handling. The standardMalcolm Tredinnick
stuff doesn't work with the way Django's file uploading code wants to operate. Patch from Mike Axiak. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8096 bcc190cf-cafb-0310-a4f2-bffc1f526a37