Refs #23919 -- Removed File's Python 2 proxied methods.
This commit is contained in:
parent
f3ac398dd5
commit
9b538badb1
|
@ -18,12 +18,10 @@ class FileProxyMixin:
|
||||||
readline = property(lambda self: self.file.readline)
|
readline = property(lambda self: self.file.readline)
|
||||||
readlines = property(lambda self: self.file.readlines)
|
readlines = property(lambda self: self.file.readlines)
|
||||||
seek = property(lambda self: self.file.seek)
|
seek = property(lambda self: self.file.seek)
|
||||||
softspace = property(lambda self: self.file.softspace)
|
|
||||||
tell = property(lambda self: self.file.tell)
|
tell = property(lambda self: self.file.tell)
|
||||||
truncate = property(lambda self: self.file.truncate)
|
truncate = property(lambda self: self.file.truncate)
|
||||||
write = property(lambda self: self.file.write)
|
write = property(lambda self: self.file.write)
|
||||||
writelines = property(lambda self: self.file.writelines)
|
writelines = property(lambda self: self.file.writelines)
|
||||||
xreadlines = property(lambda self: self.file.xreadlines)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def closed(self):
|
def closed(self):
|
||||||
|
|
|
@ -83,9 +83,9 @@ The ``File`` class
|
||||||
In addition to the listed methods, :class:`~django.core.files.File` exposes
|
In addition to the listed methods, :class:`~django.core.files.File` exposes
|
||||||
the following attributes and methods of its ``file`` object:
|
the following attributes and methods of its ``file`` object:
|
||||||
``encoding``, ``fileno``, ``flush``, ``isatty``, ``newlines``, ``read``,
|
``encoding``, ``fileno``, ``flush``, ``isatty``, ``newlines``, ``read``,
|
||||||
``readinto``, ``readline``, ``readlines``, ``seek``, ``softspace``,
|
``readinto``, ``readline``, ``readlines``, ``seek``, ``tell``,
|
||||||
``tell``, ``truncate``, ``write``, ``writelines``, ``xreadlines``,
|
``truncate``, ``write``, ``writelines``, ``readable()``, ``writable()``,
|
||||||
``readable()``, ``writable()``, and ``seekable()``.
|
and ``seekable()``.
|
||||||
|
|
||||||
.. versionchanged:: 1.11
|
.. versionchanged:: 1.11
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue