Skip to content

Commit

Permalink
Merge pull request #3736 from jdufresne/handles_eof
Browse files Browse the repository at this point in the history
Remove additional references to removed handles_eof
  • Loading branch information
radarhere committed Mar 22, 2019
2 parents 42a6e2d + deb8a7a commit afbb503
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions docs/reference/open_files.rst
Expand Up @@ -89,13 +89,6 @@ Complications
the file descriptor internally, it is duplicated prior to passing it
into libtiff.

* ``decoder.handles_eof`` This slightly misnamed flag indicates that
the decoder wants to be called with a 0 length buffer when reads are
done. Despite the comments in ``ImageFile.load()``, the only decoder
that actually uses this flag is the Jpeg2K decoder. The use of this
flag in Jpeg2K predated the change to the decoder that added the
pulls_fd flag, and is therefore not used.

* I don't think that there's any way to make this safe without
changing the lazy loading::

Expand Down
2 changes: 0 additions & 2 deletions src/PIL/ImageFile.py
Expand Up @@ -596,8 +596,6 @@ def decode(self, buffer):
Override to perform the decoding process.
:param buffer: A bytes object with the data to be decoded.
If `handles_eof` is set, then `buffer` will be empty and `self.fd`
will be set.
:returns: A tuple of (bytes consumed, errcode).
If finished with decoding return <0 for the bytes consumed.
Err codes are from `ERRORS`
Expand Down

0 comments on commit afbb503

Please sign in to comment.