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>
# FIXME: disentangle this (stop inheriting) from PackWriter
class PackWriter_Remote(git.PackWriter):
+ def __new__(cls, *args, **kwargs):
+ result = super().__new__(cls)
+ result.remote_closed = True # supports __del__
+ return result
+
def __init__(self, conn, objcache_maker, suggest_packs,
onopen, onclose,
ensure_busy,