summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-07-19 07:26:13 -0700
committerBob Halley <halley@dnspython.org>2020-07-19 07:26:13 -0700
commit9369f00515a05dd8e96b3bba17bafa7c17c49d84 (patch)
tree59db240a1e223eb6e6bb6c6db405fef5104b285a /dns
parent20e329d623706dcaf3ab1088043e8b6f1568c0b1 (diff)
downloaddnspython-cache_stats.tar.gz
rename statistics class; add documentationcache_stats
Diffstat (limited to 'dns')
-rw-r--r--dns/resolver.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dns/resolver.py b/dns/resolver.py
index 4d2b72b..ec16376 100644
--- a/dns/resolver.py
+++ b/dns/resolver.py
@@ -283,7 +283,7 @@ class Answer:
del self.rrset[i]
-class CacheStats:
+class CacheStatistics:
"""Cache Statistics
"""
@@ -296,13 +296,13 @@ class CacheStats:
self.misses = 0
def clone(self):
- return CacheStats(self.hits, self.misses)
+ return CacheStatistics(self.hits, self.misses)
class CacheBase:
def __init__(self):
self.lock = _threading.Lock()
- self.statistics = CacheStats()
+ self.statistics = CacheStatistics()
def reset_statistics(self):
"""Reset all statistics to zero."""