]> arthur.barton.de Git - bup.git/commit
Client: make close durable; clean up partitial initializations
authorRob Browning <rlb@defaultvalue.org>
Sat, 1 Jan 2022 17:13:41 +0000 (11:13 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 1 Jan 2022 20:40:22 +0000 (14:40 -0600)
commitaeffdb776ded3ae2a95f1a216fdcbcb7dc2dc8f2
tree15fb736973d64e8d3d2971301d67e71d9ef2149f
parentd1c5a726387d83d526695c30b9ac7fc0498f7027
Client: make close durable; clean up partitial initializations

Always call close after any __init__ errors, and make sure close
always tries to clean up everything that's been initialized so far.
This fixes a __del__ complaint exposed when using the mmap wrapper in
py3.

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