Fixed #26646 -- Added IOBase methods required by TextIOWrapper to File.

Thanks Tim for the review.
This commit is contained in:
Simon Charette 2016-05-22 12:43:56 -04:00
parent 6ab0d1358f
commit 4f474607de
No known key found for this signature in database
GPG key ID: 72AF89A0B1B4EDB3
7 changed files with 69 additions and 33 deletions

View file

@ -92,8 +92,13 @@ The ``File`` class
the following attributes and methods of its ``file`` object:
``encoding``, ``fileno``, ``flush``, ``isatty``, ``newlines``,
``read``, ``readinto``, ``readlines``, ``seek``, ``softspace``, ``tell``,
``truncate``, ``writelines``, ``xreadlines``. If you are using
Python 3, the ``seekable`` method is also available.
``truncate``, ``writelines``, ``xreadlines``, ``readable()``,
``writable()``, and ``seekable()``.
.. versionchanged:: 1.11
The ``readable()`` and ``writable()`` methods were added and the
``seekable()`` method was made available on Python 2.
.. currentmodule:: django.core.files.base