519
518
def increment_call_count(self, params):
520
519
# Increment the count in the WeakKeyDictionary
521
520
value = self.counts[params.medium]
527
534
# In case this callback is invoked for the same ref twice (by the
528
535
# weakref callback and by the atexit function), set the call count back
529
536
# to 0 so this item won't be reported twice.
535
544
for ref in list(self.counts.keys()):