unify file extension handling
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 4 Apr 2017 15:35:04 +0000 (17:35 +0200)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Fri, 28 Apr 2017 12:40:14 +0000 (14:40 +0200)
commitc852c3840baa970c453cd4c645331554e310f57e
tree6bc44f8c0e20abe90efa88d170545fa5572e0e5f
parent865ada6c41aacb93af9ac5a6eea7366d5b5d5b5b
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