From 4f474607de9b470f977a734bdd47590ab202e778 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Sun, 22 May 2016 12:43:56 -0400 Subject: Fixed #26646 -- Added IOBase methods required by TextIOWrapper to File. Thanks Tim for the review. --- docs/ref/files/file.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/files/file.txt b/docs/ref/files/file.txt index e88032ab66..6c218e38b3 100644 --- a/docs/ref/files/file.txt +++ b/docs/ref/files/file.txt @@ -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 -- cgit v1.3