summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Nordhausen <nordhausen@linux-z4v3.site>2012-01-13 12:42:36 +0100
committerStefan Nordhausen <nordhausen@linux-z4v3.site>2012-01-13 12:42:36 +0100
commitd58037a0d64118f709a969715e9e2832f84f476e (patch)
treea9fed5cd9250fe411842f30b53abba6ab7db5059
parentf2513a1d3043ade91d75e190aaa9678bdb3d22d5 (diff)
downloadrepoze-lru-d58037a0d64118f709a969715e9e2832f84f476e.tar.gz
get() does not set self.hand anymore.
-rw-r--r--repoze/lru/__init__.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/repoze/lru/__init__.py b/repoze/lru/__init__.py
index 8e46967..64bd7ba 100644
--- a/repoze/lru/__init__.py
+++ b/repoze/lru/__init__.py
@@ -38,10 +38,6 @@ class LRUCache(object):
return default
pos, val = datum
self.clock[pos]['ref'] = True
- hand = pos + 1
- if hand > self.maxpos:
- hand = 0
- self.hand = hand
return val
def put(self, key, val, _marker=_marker):