unify file extension handling
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 4 Apr 2017 15:35:04 +0000 (17:35 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
commit2cdd9faf1abbade93ff8a9dd4625cdbf006762f4
tree00d65a6b05e14455142a8fe1a792f83b7f2f92c6
parent47d2267944971cbc63eebd065691104c1176ed56
unify file extension handling

The required extension no longer depends on the “[index]mode”
parameter since the encryption context is handled independently.
Add a function pick_extension() that reflects this circumstance
and appends the required suffixed depending on three inputs.
deltatar/deltatar.py