diff options
author | Tres Seaver <tseaver@palladion.com> | 2012-07-05 09:34:27 -0400 |
---|---|---|
committer | Tres Seaver <tseaver@palladion.com> | 2012-07-05 09:34:27 -0400 |
commit | 5327a016e413c6189c7af6ceadc7c703c56cbb30 (patch) | |
tree | e708d865e570f43029097f657fedb047a96aff48 | |
parent | d7a5a74512aac7c07fe630c6c49e44b6dc214e0f (diff) | |
download | repoze-lru-5327a016e413c6189c7af6ceadc7c703c56cbb30.tar.gz |
Tidy.
Drop unused re-bind of 'range'.
-rw-r--r-- | repoze/lru/__init__.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/repoze/lru/__init__.py b/repoze/lru/__init__.py index 8ac2415..8e48859 100644 --- a/repoze/lru/__init__.py +++ b/repoze/lru/__init__.py @@ -5,16 +5,13 @@ import threading import time import uuid -try: - range = xrange -except NameError: # pragma: no cover - pass _MARKER = object() # By default, expire items after 2**60 seconds. This fits into 64 bit # integers and is close enough to "never" for practical purposes. _DEFAULT_TIMEOUT = 2 ** 60 + class LRUCache(object): """ Implements a pseudo-LRU algorithm (CLOCK) @@ -266,6 +263,7 @@ class ExpiringLRUCache(object): self.clock_refs[entry[0]] = False # else: key was not in cache. Nothing to do. + class lru_cache(object): """ Decorator for LRU-cached function |