]> arthur.barton.de Git - bup.git/commit
CatPipe.__del__: replace with context management
authorRob Browning <rlb@defaultvalue.org>
Tue, 28 Sep 2021 05:32:37 +0000 (00:32 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 22 Nov 2021 16:35:28 +0000 (10:35 -0600)
commit10eb3423d086e9fa5ac2bc1fd528c8b05c4ea520
tree05a187c0c2fc9bc7b2142830f78cbb92ed5b7a7b
parentf26a6a9ec9d7179c440c2486fe6fd7459c43bda3
CatPipe.__del__: replace with context management

Drop AbortableIter since CatFile is the only user, in favor of just
closing the catpipe (what the AbortableIter was doing) in the get()
exception handler.

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