summaryrefslogtreecommitdiff
path: root/django/core/files/temp.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-3/+8
|
* Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne2019-01-281-1/+1
| | | | Used more specific errors (e.g. FileExistsError) as appropriate.
* Refs #29784 -- Switched to https:// links where available.Jon Dufresne2018-09-261-1/+1
|
* Removed unnecessary parens in various code.Mariusz Felisiak2017-09-131-1/+1
|
* Refs #23919 -- Removed misc references to Python 2.Tim Graham2017-01-211-6/+5
|
* Fixed broken links in docs and comments.Ville Skyttä2016-06-151-1/+1
|
* Fixed #26646 -- Added IOBase methods required by TextIOWrapper to File.Simon Charette2016-05-271-9/+0
| | | | Thanks Tim for the review.
* Fixed E128 flake8 warnings in django/.Tim Graham2016-04-081-2/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-0/+1
|
* Clarified a comment in django.core.files.temp.Tim Graham2014-08-291-1/+2
|
* Made the vendored NamedTemporaryFile work as a context manager. Refs #22680.Loic Bistuer2014-06-121-0/+7
| | | | | | This fixes a regression on Windows introduced by b7de5f5. Thanks Tim Graham for the report and review.
* Fixed #18744 -- Updated docstring to highlight limitations of NamedTemporaryFileKevin Christopher Henry2013-09-191-10/+21
| | | | | | | - 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.
* Fixed #11857 -- Added missing 'closed' property on TemporaryFile class.Christopher Adams2013-09-061-0/+9
| | | | | | | | | | - 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.
* Fixed #7712, #9404, #10249, #10300: a light refactor and cleanup of file ↵Jacob Kaplan-Moss2009-05-081-7/+2
| | | | | | 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
* Fixed #9344 -- In the `TemporaryFile` class used by Windows, proxy to the ↵Gary Wilson Jr2009-05-081-6/+5
| | | | | | wrapped file object. Thanks julien and mitsuhiko. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8203 -- Fixed temporary file deleation on Windows and a couple of edgeMalcolm Tredinnick2008-08-231-23/+27
| | | | | | | | 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
* Fixed #7658 -- Added some Windows-specific tempfile handling. The standardMalcolm Tredinnick2008-07-261-0/+58
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