| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-04-14 | Fixed #27150 -- Made base File objects truthy by default. | VIZZARD-X | |
| 2025-12-09 | Fixed #36768 -- Optimized string concatenation in File.__iter__(). | varunkasyap | |
| 2025-07-23 | Refs #36500 -- Rewrapped long docstrings and block comments via a script. | django-bot | |
| Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505. | |||
| 2023-09-11 | Fixed #34642 -- Added File.open() support for *args and **kwargs. | Yves Weissig | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2019-03-28 | Fixed "byte string" typo in various docs and comments. | Mariusz Felisiak | |
| 2018-07-27 | Fixed typo in ContentFile docstring. | Thomas Grainger | |
| 2018-03-12 | Removed redundant UploadedFile.DEFAULT_CHUNK_SIZE. | Sergey Fedoseev | |
| The same value is inherited from File. | |||
| 2018-03-10 | Used cached_property for File.size. | Sergey Fedoseev | |
| 2018-03-08 | Fixed #29188 -- Fixed ContentFile.size after a write(). | Alex Stovbur | |
| 2018-01-03 | Fixed #28982 -- Simplified code with and/or. | Дилян Палаузов | |
| 2017-04-07 | Fixed #27777 -- Made File.open() work with the with statement (#8310) | Ingo Klöcker | |
| Fixed #27777 -- Made File.open() work with the with statement | |||
| 2017-03-04 | Refs #27795 -- Removed unneeded force_text calls | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-02-21 | Refs #27656 -- Updated django.core docstring verbs according to PEP 257. | Anton Samarchyan | |
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-20 | Refs #23919 -- Removed unneeded force_str calls | Claude Paroz | |
| 2017-01-19 | Refs #23919 -- Removed __nonzero__() methods (for Python 2). | Simon Charette | |
| Thanks Tim for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | |
| Thanks Tim Graham and Simon Charette for the reviews. | |||
| 2017-01-18 | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | |
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-09-03 | Replaced smart_* by force_* calls whenever possible | Claude Paroz | |
| The smart_* version should only be used when a lazy string should keep its lazy status. | |||
| 2016-06-18 | Reverted "Fixed #26644 -- Allowed wrapping NamedTemporaryFile with File." | Tim Graham | |
| This reverts commit 1b407050dd53e56686fdd3e168f8cac4f9be8306 as it introduces a regression in the test for refs #26772. | |||
| 2016-06-14 | Fixed #26644 -- Allowed wrapping NamedTemporaryFile with File. | Hugo Osvaldo Barrera | |
| 914c72be2abb1c6dd860cb9279beaa66409ae1b2 introduced a regression that causes saving a NamedTemporaryFile in a FileField to raise a SuspiciousFileOperation. To remedy this, if a File has an absolute path as a filename, use only the basename as the filename. | |||
| 2016-05-27 | Fixed #26646 -- Added IOBase methods required by TextIOWrapper to File. | Simon Charette | |
| Thanks Tim for the review. | |||
| 2015-04-02 | Fixed typo in django.core.files.File docstring. | Matt Hooks | |
| 2014-11-24 | Fixed #23888 -- Fixed crash in File.__repr__() when name contains unicode. | Sergey Fedoseev | |
| 2014-10-30 | Fixed #8149 -- Made File.__iter__() support universal newlines. | Jon Dufresne | |
| The following are recognized as ending a line: the Unix end-of-line convention '\n', the Windows convention '\r\n', and the old Macintosh convention '\r'. http://www.python.org/dev/peps/pep-0278 Thanks tchaumeny for review. | |||
| 2014-03-22 | Fixed a failing test introduced in 918a16bc4c099ab0cae72a231de3e99e2a9d02cb. | Baptiste Mispelon | |
| Refs #22307. | |||
| 2014-03-21 | Fixed #22307 -- Fixed SpooledTemporaryFile bug in File class. | Hans Lawrenz | |
| Added condition to prevent checking the existence of a file name of a file like object when the name attribute is None. This is necessary because a SpooledTemporaryFile won't exist on the file system or have a name until it has reached its max_size. Also added tests. | |||
| 2014-02-20 | Fixed #22107 -- Fixed django.core.files.File object iteration. | Baptiste Mispelon | |
| Due to a mixup between text and bytes, iteration over a File instance was broken under Python 3. Thanks to trac user pdewacht for the report and patch. | |||
| 2013-11-03 | Fixed all E226 violations | Alex Gaynor | |
| 2013-11-02 | More attacking E302 violators | Alex Gaynor | |
| 2012-12-06 | Fixed #19367 -- Fixed saving ContentFile in filesystem storage | Claude Paroz | |
| This was not working properly when ContentFile was initialized with an unicode string. Thanks Alexey Boriskin for the report and the test. | |||
| 2012-11-03 | Fixed #18963 -- Used a subclass-friendly pattern | Aymeric Augustin | |
| for Python 2 object model compatibility methods. | |||
| 2012-08-29 | Fixed #11739 -- Made ContentFile support Unicode input | Claude Paroz | |
| 2012-08-29 | Replaced many smart_bytes by force_bytes | Claude Paroz | |
| In all those occurrences, we didn't care about preserving the lazy status of the strings, but we really wanted to obtain a real bytestring. | |||
| 2012-08-18 | [py3] Fixed file_storage tests. | Aymeric Augustin | |
| 2012-08-12 | [py3] Refactored __unicode__ to __str__. | Aymeric Augustin | |
| * Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2 | |||
| 2012-08-12 | [py3] Replaced some __str__ methods by __unicode__ | Aymeric Augustin | |
| These methods actually return unicode. | |||
| 2012-08-12 | [py3] Removed redundant __str__ methods. | Aymeric Augustin | |
| These classes already have an identical __unicode__ method, which will be used after an upcoming refactoring. | |||
| 2012-08-08 | [py3] Replaced __nonzero__ by __bool__ | Claude Paroz | |
| Of course, __nonzero__ alias has been kept for Python 2 compatibility. | |||
| 2012-08-07 | [py3] Ported django.utils.encoding. | Aymeric Augustin | |
| * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str. | |||
| 2012-06-07 | Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. | Claude Paroz | |
| Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review. | |||
| 2012-05-31 | Fixed #14681 -- Do not set mode to None on file-like objects. | Claude Paroz | |
| gzip.GzipFile does not support files with mode set to None. | |||
| 2012-05-19 | Marked bytestrings with b prefix. Refs #18269 | Claude Paroz | |
| This is a preparation for unicode literals general usage in Django (Python 3 compatibility). | |||
| 2012-05-05 | Used io.BytesIO also for ContentFile. | Claude Paroz | |
| io.StringIO would force the content to be Unicode, which would be slightly backwards incompatible. | |||
| 2012-05-05 | Replaced cStringIO.StringIO by io.BytesIO. | Claude Paroz | |
| Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3. | |||
| 2012-04-05 | Fixed #15644 -- Improved Django File wrapper to support more file-like ↵ | Claude Paroz | |
| objects. Thanks nickname123 and Michael Palumbo for working on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17871 bcc190cf-cafb-0310-a4f2-bffc1f526a37 | |||
| 2011-12-30 | Fixed #16590 -- Accepted a 'name' argument in the constructor of ↵ | Aymeric Augustin | |
| ContentFile, for consistency with File. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17298 bcc190cf-cafb-0310-a4f2-bffc1f526a37 | |||
