[Python-checkins] cpython (3.3): Another nit.

raymond.hettinger python-checkins at python.org
Mon Mar 4 10:20:57 CET 2013


http://hg.python.org/cpython/rev/052b90daf8b9
changeset:   82470:052b90daf8b9
branch:      3.3
parent:      82468:4b06fd08b78c
user:        Raymond Hettinger <python at rcn.com>
date:        Mon Mar 04 04:19:09 2013 -0500
summary:
  Another nit.

files:
  Lib/functools.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/functools.py b/Lib/functools.py
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -285,7 +285,7 @@
                         link = [last, root, key, result]
                         last[NEXT] = root[PREV] = cache[key] = link
                         currsize += 1
-                        full = (currsize == maxsize)
+                        full = (currsize >= maxsize)
                     misses += 1
                 return result
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list