]> 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>
Sat, 23 May 2020 16:54:54 +0000 (11:54 -0500)
commitda2424105791f9d732c9f429c562d47cd4c7382e
treef5a15006c15772f88eb73674e324392b46f96deb
parentd91cf5c026bb118076e2e16303760e0181fbd508
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>
(cherry picked from commit 0c009932e7eae09badf847b951025f2bad4c271f)
[rlb@defaultvalue.org: adjusted for 0.30.x]
cmd/save-cmd.py