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 serhiy.storchaka
Recipients josh.r, nadeem.vawda, serhiy.storchaka, vnummela
Date 2014-06-26.08:00:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403769623.67.0.427378341296.issue21872@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import lzma
>>> f = lzma.open('22h_ticks_bad.bi5')
>>> len(f.read())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/serhiy/py/cpython/Lib/lzma.py", line 310, in read
    return self._read_all()
  File "/home/serhiy/py/cpython/Lib/lzma.py", line 251, in _read_all
    while self._fill_buffer():
  File "/home/serhiy/py/cpython/Lib/lzma.py", line 225, in _fill_buffer
    raise EOFError("Compressed file ended before the "
EOFError: Compressed file ended before the end-of-stream marker was reached


This is similar to issue1159051. We need a way to say "read as much as possible without error and raise EOFError only on next read".
History
Date User Action Args
2014-06-26 08:00:23serhiy.storchakasetrecipients: + serhiy.storchaka, nadeem.vawda, josh.r, vnummela
2014-06-26 08:00:23serhiy.storchakasetmessageid: <1403769623.67.0.427378341296.issue21872@psf.upfronthosting.co.za>
2014-06-26 08:00:23serhiy.storchakalinkissue21872 messages
2014-06-26 08:00:23serhiy.storchakacreate