]> arthur.barton.de Git - bup.git/commit
_encode_packobj: raise ValueError for bad level
authorRob Browning <rlb@defaultvalue.org>
Sun, 3 Jul 2016 19:21:20 +0000 (14:21 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 3 Jul 2016 19:30:37 +0000 (14:30 -0500)
commitf210eb6ca6159474f6b4f8c83753595800c46f31
treeb5ec9cc9be09db554f8301394ed1a8d35307796e
parent5c97cd7f302aa80a85983ac27f2150eb892de58a
_encode_packobj: raise ValueError for bad level

Move the compression_level argument test to the start of the function,
be even more restrictive, and add trivial tests.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/git.py
lib/bup/t/tgit.py