]> arthur.barton.de Git - bup.git/commit
PackWriter_remote: init remote_closed in __new__, not __init__
authorRob Browning <rlb@defaultvalue.org>
Tue, 28 Jun 2022 21:34:57 +0000 (16:34 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 14 Aug 2022 19:07:15 +0000 (14:07 -0500)
commit85ffd63f8318b0c1fb39b097a68bc90748c2dfcc
tree47004982ff6501b97c2d373ec279a171c320770c
parent26f70b361610366de64a160bf49528dcf933ad5f
PackWriter_remote: init remote_closed in __new__, not __init__

So that it's always set during __del__.  Otherwise it might not exist
if (for example) __new__ or the superclass methods throw an exception
before we get to __init__.

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