From c2cd5fe3d15f1530a69eb9e4fb85b91633e7d19a Mon Sep 17 00:00:00 2001 From: wiredfool Date: Thu, 23 Feb 2017 02:19:32 -0800 Subject: [PATCH] handles_eof was removed in 4.0 --- PIL/ImageFile.py | 5 ----- docs/handbook/writing-your-own-file-decoder.rst | 3 --- 2 files changed, 8 deletions(-) diff --git a/PIL/ImageFile.py b/PIL/ImageFile.py index edce2fb5a..7406f5752 100644 --- a/PIL/ImageFile.py +++ b/PIL/ImageFile.py @@ -541,7 +541,6 @@ class PyDecoder(object): See :ref:`Writing Your Own File Decoder in Python` """ - _handles_eof = False _pulls_fd = False def __init__(self, mode, *args): @@ -560,10 +559,6 @@ class PyDecoder(object): """ self.args = args - @property - def handles_eof(self): - return self._handles_eof - @property def pulls_fd(self): return self._pulls_fd diff --git a/docs/handbook/writing-your-own-file-decoder.rst b/docs/handbook/writing-your-own-file-decoder.rst index ed1f2dc34..07468dc4a 100644 --- a/docs/handbook/writing-your-own-file-decoder.rst +++ b/docs/handbook/writing-your-own-file-decoder.rst @@ -354,9 +354,6 @@ interest in this object are: member is an opaque struct that can be used by the decoder to store any format specific state or options. -**handles_eof** - UNDONE, set if your code handles EOF errors. - **pulls_fd** **EXPERIMENTAL** -- **WARNING**, interface may change. If set to 1, ``state->fd`` will be a pointer to the Python file like object. The