summaryrefslogtreecommitdiffstats
path: root/pym/cache/anydbm.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/cache/anydbm.py')
-rw-r--r--pym/cache/anydbm.py2
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):