no more has_key

This commit is contained in:
mdipierro
2012-08-26 18:34:50 -05:00
parent 334e150638
commit 030203effd
6 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -298,7 +298,7 @@ class CacheOnDisk(CacheAbstract):
try:
storage = self._open_shelf_with_lock()
try:
if not storage.has_key(CacheAbstract.cache_stats_name):
if not CacheAbstract.cache_stats_name in storage:
storage[CacheAbstract.cache_stats_name] = {
'hit_total': 0,
'misses': 0,