We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eab60a1 commit ecc9615Copy full SHA for ecc9615
pybloom/pybloom.py
@@ -366,7 +366,7 @@ def add(self, key):
366
@property
367
def capacity(self):
368
"""Returns the total capacity for all filters in this SBF"""
369
- return sum([f.capacity for f in self.filters])
+ return sum(f.capacity for f in self.filters)
370
371
372
def count(self):
@@ -415,7 +415,7 @@ def fromfile(cls, f):
415
416
def __len__(self):
417
"""Returns the total number of elements stored in this SBF"""
418
- return sum([f.count for f in self.filters])
+ return sum(f.count for f in self.filters)
419
420
421
if __name__ == "__main__":
0 commit comments