fix tarfile crypto parameter passing
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Thu, 6 Apr 2017 12:36:26 +0000 (14:36 +0200)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 7 Aug 2017 12:02:44 +0000 (14:02 +0200)
commit63b391e6c9acae3b3bf9d359cfcafcd18e13c7e6
treec62bc3c41e12051f461fb5309c0d50a16b1e8e67
parent898190c25d4110e9065b9ea33b181265f9bc39f8
fix tarfile crypto parameter passing

Remove obsolete parameters like “password” that are no longer
meaningful after moving the creation of the crypto context
outside of tarfile.py.

Also, check test the presence of encryption attributes before
accessing them to avoid conflicts with zlib streams. (Kludgy, but
not avoidable without a larger changes due to the possibility of
“fileobj” being anything, including things that don’t satisfy all
the interfaces that “_Stream” provides.
deltatar/tarfile.py