fix tarfile crypto parameter passing
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Thu, 6 Apr 2017 12:36:26 +0000 (14:36 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
commit8a9ea8185aa925b864c3db81faed4de4178c6614
treeb6a6af3f37e0ea2cdccf52e5a32d2336b76b1beb
parent591a722f561ac341e30a66ae097d553cb04ec16a
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