diff options
Diffstat (limited to 'pym/cache/anydbm.py')
-rw-r--r-- | pym/cache/anydbm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/cache/anydbm.py b/pym/cache/anydbm.py index 87e448f30..a4e0003d4 100644 --- a/pym/cache/anydbm.py +++ b/pym/cache/anydbm.py @@ -63,7 +63,7 @@ class database(fs_template.FsBased): def iterkeys(self): return iter(self.__db.keys()) - def has_key(self, cpv): + def __contains__(self, cpv): return cpv in self.__db def __del__(self): |