Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Lindahl committed Feb 10, 2024
1 parent 6854876 commit ad81527
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crawlstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def __contains__(self, crawl):
return (self.bits & MonthlyCrawl.to_bit_mask(crawl)) != 0

def __len__(self):
"""popcount of a 32 bit integer."""
i = self.bits
i = i - ((i >> 1) & 0x55555555)
i = (i & 0x33333333) + ((i >> 2) & 0x33333333)
Expand Down

0 comments on commit ad81527

Please sign in to comment.