This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author socketpair
Recipients socketpair
Date 2016-04-28.21:44:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461879882.57.0.719679075431.issue26877@psf.upfronthosting.co.za>
In-reply-to
Content
tarfile.py: _FileInFile():

(near line 687)

b = self.fileobj.read(length)
if len(b) != length:
    raise ReadError("unexpected end of data")

every read() API does not guarantee that it will read `length` bytes. So, if fileobj reads less than requestedm that is not an error (!)

In my case it was a pipe...
History
Date User Action Args
2016-04-28 21:44:42socketpairsetrecipients: + socketpair
2016-04-28 21:44:42socketpairsetmessageid: <1461879882.57.0.719679075431.issue26877@psf.upfronthosting.co.za>
2016-04-28 21:44:42socketpairlinkissue26877 messages
2016-04-28 21:44:42socketpaircreate