diff options
author | Simon Charette <charette.s@gmail.com> | 2016-05-22 12:43:56 -0400 |
---|---|---|
committer | Simon Charette <charette.s@gmail.com> | 2016-05-27 21:05:58 -0400 |
commit | 4f474607de9b470f977a734bdd47590ab202e778 (patch) | |
tree | ce05cd13e229c7086362703d84c9dedd8a0d6fb2 /django/core/files/base.py | |
parent | 6ab0d1358fc78077064aab88a4fb0a47ca116391 (diff) | |
download | django-4f474607de9b470f977a734bdd47590ab202e778.tar.gz |
Fixed #26646 -- Added IOBase methods required by TextIOWrapper to File.
Thanks Tim for the review.
Diffstat (limited to 'django/core/files/base.py')
-rw-r--r-- | django/core/files/base.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/django/core/files/base.py b/django/core/files/base.py index a27d363658..11049a45de 100644 --- a/django/core/files/base.py +++ b/django/core/files/base.py @@ -64,10 +64,6 @@ class File(FileProxyMixin): size = property(_get_size, _set_size) - def _get_closed(self): - return not self.file or self.file.closed - closed = property(_get_closed) - def chunks(self, chunk_size=None): """ Read the file and yield chunks of ``chunk_size`` bytes (defaults to |