Преглед изворни кода

repository: remove __len__ and __contains__

Thomas Waldmann пре 9 месеци
родитељ
комит
a15cd1e493
1 измењених фајлова са 0 додато и 6 уклоњено
  1. 0 6
      src/borg/repository.py

+ 0 - 6
src/borg/repository.py

@@ -286,12 +286,6 @@ class Repository:
                 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>.