-## Copyright 2002-2003 Andrew Loewenstern, All Rights Reserved
-# see LICENSE.txt for license information
"""Some utitlity functions for use in apt-p2p's khashmir DHT."""
def count(buckets):
c = 0
for bucket in buckets:
- c = c + len(bucket.l)
+ c = c + bucket.len()
return c
for node in l:
c = count(node.table.buckets)