Module tarfile :: Class _BZ2Proxy
[hide private]
[frames] | no frames]

type _BZ2Proxy

object --+

Small proxy class that enables external file object support for "r:bz2" and "w:bz2" modes. This is actually a workaround for a limitation in bz2 module's BZ2File class which (unlike gzip.GzipFile) has no support for a file object argument.

Instance Methods [hide private]
__init__(self, fileobj, mode)
read(self, size)
seek(self, pos)
write(self, data)
Class Variables [hide private]
  blocksize = 16384
Method Details [hide private]

__init__(self, fileobj, mode)

Overrides: object.__init__
(inherited documentation)