]> arthur.barton.de Git - bup.git/commit
io.mmap: init _bup_closed in __new__, not __init__
authorRob Browning <rlb@defaultvalue.org>
Fri, 24 Jun 2022 21:14:43 +0000 (16:14 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 14 Aug 2022 18:50:20 +0000 (13:50 -0500)
commit26f70b361610366de64a160bf49528dcf933ad5f
treec55bf03962df81cd1cec5786c390a907afd0d0aa
parent36fce270ed41330d1cf4ada5dda17c1b816f677d
io.mmap: init _bup_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/io.py