mapper.py is entirely 79 char lines now

This commit is contained in:
Mike Bayer
2010-05-31 12:23:46 -04:00
parent cfe9fadc61
commit f0bf4e54e9
2 changed files with 329 additions and 170 deletions
File diff suppressed because it is too large Load Diff
+4
View File
@@ -1550,6 +1550,10 @@ else:
time_func = time.time
class LRUCache(dict):
"""Dictionary with 'squishy' removal of least
recently used items.
"""
def __init__(self, capacity=100, threshold=.5):
self.capacity = capacity
self.threshold = threshold