1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-01 12:45:34 +00:00

repository: remove __len__ and __contains__

This commit is contained in:
Thomas Waldmann 2024-08-25 01:57:47 +02:00
parent 1a382a8bcf
commit a15cd1e493
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -286,12 +286,6 @@ def check_object(obj):
logger.error(f"Finished {mode} repository check, errors found.")
return objs_errors == 0 or repair
def __len__(self):
raise NotImplementedError
def __contains__(self, id):
raise NotImplementedError
def list(self, limit=None, marker=None):
"""
list <limit> IDs starting from after id <marker>.