summaryrefslogtreecommitdiff
path: root/docs/ref/files
diff options
context:
space:
mode:
authorJosh Schneier <josh.schneier@gmail.com>2017-04-19 14:48:01 -0400
committerTim Graham <timograham@gmail.com>2017-04-25 19:49:00 -0400
commit98ee57e343206ef553de78b22be5e9a6dacb5060 (patch)
tree9f178f16f0d53582f40cf9e0d93e8288a47460aa /docs/ref/files
parenta78fd2abd48811a824d9ac61e61ce106567380a8 (diff)
Removed nonexistent methods from File's docs.
read() and write() were removed in 68a890e79f660484d05482902663b6168f0bd71e.
Diffstat (limited to 'docs/ref/files')
-rw-r--r--docs/ref/files/file.txt19
1 files changed, 4 insertions, 15 deletions
diff --git a/docs/ref/files/file.txt b/docs/ref/files/file.txt
index d79ae57f47..a1f29ebf66 100644
--- a/docs/ref/files/file.txt
+++ b/docs/ref/files/file.txt
@@ -59,11 +59,6 @@ The ``File`` class
Returns ``self``, so that it can be used similar to Python's
built-in :func:`python:open()` with the ``with`` statement.
- .. method:: read(num_bytes=None)
-
- Read content from the file. The optional ``size`` is the number of
- bytes to read; if not specified, the file will be read to the end.
-
.. method:: __iter__()
Iterate over the file yielding one line at a time.
@@ -81,22 +76,16 @@ The ``File`` class
Returns ``True`` if the file is large enough to require multiple chunks
to access all of its content give some ``chunk_size``.
- .. method:: write(content)
-
- Writes the specified content string to the file. Depending on the
- storage system behind the scenes, this content might not be fully
- committed until :func:`close()` is called on the file.
-
.. method:: close()
Close the file.
In addition to the listed methods, :class:`~django.core.files.File` exposes
the following attributes and methods of its ``file`` object:
- ``encoding``, ``fileno``, ``flush``, ``isatty``, ``newlines``,
- ``read``, ``readinto``, ``readlines``, ``seek``, ``softspace``, ``tell``,
- ``truncate``, ``writelines``, ``xreadlines``, ``readable()``,
- ``writable()``, and ``seekable()``.
+ ``encoding``, ``fileno``, ``flush``, ``isatty``, ``newlines``, ``read``,
+ ``readinto``, ``readline``, ``readlines``, ``seek``, ``softspace``,
+ ``tell``, ``truncate``, ``write``, ``writelines``, ``xreadlines``,
+ ``readable()``, ``writable()``, and ``seekable()``.
.. versionchanged:: 1.11