]> arthur.barton.de Git - bup.git/commit
save: close files immediately
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 16 May 2020 07:03:31 +0000 (09:03 +0200)
committerRob Browning <rlb@defaultvalue.org>
Wed, 20 May 2020 06:03:05 +0000 (01:03 -0500)
commit0c009932e7eae09badf847b951025f2bad4c271f
tree4f511cf1dd54673d3cd82f2b3fd0b45af7b389a4
parent3912ff3aa3ef75f79ccc6ec014c4a691d0e3803b
save: close files immediately

Use a with statement to close all files immediately after
hashsplitting. There's also no need to have two except
clauses, so unify them to simplify this change.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/save-cmd.py