extend functionality of DecompressedStream
authorHelmut Grohne <helmut@subdivi.de>
Thu, 28 Apr 2016 18:28:11 +0000 (20:28 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Thu, 28 Apr 2016 18:28:11 +0000 (20:28 +0200)
commita24b9125ae91cb26e56bac3752b6e38e1dbf264e
treea27f0e48dbf877b460d8d735a65f2ed183113594
parentcf5e9f8c9714361042147889ab4b24225c4d07a0
extend functionality of DecompressedStream

It now supports:
 * tell()
 * seek(absolute_position), forward only
 * close()
 * closed

This is sufficient for putting it as a fileobj into tarfile.TarFile. By
doing so we can decouple decompression from tar processing, which eases
papering over the Python 2.x vs Python 3.x differences.
dedup/compression.py