diff options
Diffstat (limited to 'pym/cache/flat_hash.py')
-rw-r--r-- | pym/cache/flat_hash.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/cache/flat_hash.py b/pym/cache/flat_hash.py index d4c5930c7..a8adb2205 100644 --- a/pym/cache/flat_hash.py +++ b/pym/cache/flat_hash.py @@ -98,7 +98,7 @@ class database(fs_template.FsBased): raise cache_errors.CacheCorruption(cpv, e) - def has_key(self, cpv): + def __contains__(self, cpv): return os.path.exists(os.path.join(self.location, cpv)) |