We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e61bccf commit cb311daCopy full SHA for cb311da
1 file changed
Lib/tarfile.py
@@ -576,11 +576,7 @@ def _read(self, size):
576
t.append(dbuf)
577
c += len(dbuf)
578
579
- t = b"".join(t)
580
- if len(t) > size:
581
- # This would only happen if decompress() has a bug.
582
- raise ReadError("decompress() returned too much data")
583
- return t
+ return b"".join(t)
584
585
def __read(self, size):
586
"""Return size bytes from stream. If internal buffer is empty,
0 commit comments