Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #29027 -- Fixed file_move_safe() crash when moving files with SELinux. | Yuri Konotopov | 2022-10-24 | 1 | -6/+8 |
| | | | | Thanks Florian Apolloner for the review. | ||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -11/+24 |
| | |||||
* | Fixed #30137 -- Replaced OSError aliases with the canonical OSError. | Jon Dufresne | 2019-01-28 | 1 | -2/+2 |
| | | | | Used more specific errors (e.g. FileExistsError) as appropriate. | ||||
* | Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()." | Tim Graham | 2017-09-07 | 1 | -4/+5 |
| | | | | This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better. | ||||
* | Fixed #27818 -- Replaced try/except/pass with contextlib.suppress(). | Mads Jensen | 2017-06-28 | 1 | -6/+4 |
| | |||||
* | Fixed #28170 -- Fixed file_move_safe() crash when moving files to a CIFS mount. | Derrick Jackson | 2017-05-31 | 1 | -1/+10 |
| | |||||
* | Refs #27656 -- Updated django.core docstring verbs according to PEP 257. | Anton Samarchyan | 2017-02-21 | 1 | -6/+5 |
| | |||||
* | Refs #23919 -- Replaced errno checking with PEP 3151 exceptions. | Tim Graham | 2017-01-25 | 1 | -2/+2 |
| | |||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 1 | -1/+0 |
| | |||||
* | Removed shutil.copystat copied from stdlib (added to support an old Python?). | Tim Graham | 2014-12-24 | 1 | -13/+2 |
| | |||||
* | Fixed E127 pep8 warnings. | Loic Bistuer | 2013-12-14 | 1 | -2/+2 |
| | |||||
* | Fixed all E226 violations | Alex Gaynor | 2013-11-03 | 1 | -1/+1 |
| | |||||
* | Fixed flake8 E251 violations | Milton Mazzarri | 2013-11-03 | 1 | -1/+1 |
| | |||||
* | More attacking E302 violators | Alex Gaynor | 2013-11-02 | 1 | -0/+2 |
| | |||||
* | Start attacking E231 violations | Alex Gaynor | 2013-10-24 | 1 | -1/+1 |
| | |||||
* | Fixed #21298 -- Fixed E301 pep8 warnings | Alasdair Nicol | 2013-10-23 | 1 | -0/+1 |
| | |||||
* | Fixed #20486 -- Ensure that file_move_safe raises an error if the ↵ | Russell Keith-Magee | 2013-06-20 | 1 | -0/+4 |
| | | | | | | destination already exists. Thanks to kux for the report, and Russ Webber for the patch. | ||||
* | Replaced `and...or...` constructs with PEP 308 conditional expressions. | Ramiro Morales | 2013-05-26 | 1 | -3/+3 |
| | |||||
* | [py3] Fixed slow path through file_move_safe | Karen Tracey | 2012-08-18 | 1 | -1/+1 |
| | | | | This path is taken on Windows. | ||||
* | Made more extensive usage of context managers with open. | Claude Paroz | 2012-05-05 | 1 | -4/+1 |
| | |||||
* | Fixed #18013 -- Use the new 'as' syntax for exceptions. | Claude Paroz | 2012-04-29 | 1 | -1/+1 |
| | | | | | Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6). | ||||
* | Fixed #8900: Added errno=13 (permission denied) to the class of ignored ↵ | Karen Tracey | 2009-04-05 | 1 | -10/+9 |
| | | | | | | | | | | | | | | OSErrors when attempting to delete the old file in file_move_safe. This error was seen on Windows with Pythons < 2.5. In the case where the error was seen, the old file is auto-deleted on close anyway by the Windows-specific NamedTemporaryFile support. No new test because the failure could be seen when running the file_uploads test with Python 2.3/2.4 on Windows. With this fix file_uploads runs clean in that environment. While in the neignborhood fixed up the docstrings to better match the reality of what the code does and what the function is named. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10396 bcc190cf-cafb-0310-a4f2-bffc1f526a37 | ||||
* | Fixed #8673: fixed a missing import in `django.core.files.move`. | Jacob Kaplan-Moss | 2008-08-29 | 1 | -0/+1 |
| | | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@8720 bcc190cf-cafb-0310-a4f2-bffc1f526a37 | ||||
* | Fixed #8203 -- Fixed temporary file deleation on Windows and a couple of edge | Malcolm Tredinnick | 2008-08-23 | 1 | -21/+49 |
| | | | | | | | | 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 #4948, a race condition in file saving. Thanks to Martin von Löwis, ↵ | Jacob Kaplan-Moss | 2008-08-11 | 1 | -11/+12 |
| | | | | | | who diagnosed the problem and pointed the way to a fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8306 bcc190cf-cafb-0310-a4f2-bffc1f526a37 | ||||
* | Fixed #2070: refactored Django's file upload capabilities. | Jacob Kaplan-Moss | 2008-07-01 | 1 | -0/+59 |
A description of the new features can be found in the new [http://www.djangoproject.com/documentation/upload_handing/ upload handling documentation]; the executive summary is that Django will now happily handle uploads of large files without issues. This changes the representation of uploaded files from dictionaries to bona fide objects; see BackwardsIncompatibleChanges for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7814 bcc190cf-cafb-0310-a4f2-bffc1f526a37 |