have cacheutils use the sentinel factory (looks better in the docs)

This commit is contained in:
Mahmoud Hashemi 2015-03-30 20:11:45 -07:00
parent 833437e150
commit ac37f096ad
1 changed files with 7 additions and 1 deletions

View File

@ -21,9 +21,15 @@ except:
def __exit__(self, exctype, excinst, exctb):
pass
try:
from compat import make_sentinel
_MISSING = make_sentinel(var_name='_MISSING')
except ImportError:
_MISSING = object()
PREV, NEXT, KEY, VALUE = range(4) # names for the link fields
DEFAULT_MAX_SIZE = 128
_MISSING = object()
class LRU(dict):