X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=lib%2Fbup%2Fclient.py;fp=lib%2Fbup%2Fclient.py;h=5873a8f33d32b8c4996c9dd624fbc38a496270ef;hp=0942be0ca9c4c25398487292ff8c01f02041927a;hb=85ffd63f8318b0c1fb39b097a68bc90748c2dfcc;hpb=26f70b361610366de64a160bf49528dcf933ad5f diff --git a/lib/bup/client.py b/lib/bup/client.py index 0942be0..5873a8f 100644 --- a/lib/bup/client.py +++ b/lib/bup/client.py @@ -509,6 +509,11 @@ class Client: # 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,