summaryrefslogtreecommitdiffstats
path: root/pym/cache/sqlite.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/cache/sqlite.py')
-rw-r--r--pym/cache/sqlite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/cache/sqlite.py b/pym/cache/sqlite.py
index 571eff39b..6b1a3d323 100644
--- a/pym/cache/sqlite.py
+++ b/pym/cache/sqlite.py
@@ -200,7 +200,7 @@ class database(fs_template.FsBased):
self._db_table["packages"]["package_key"],
self._db_escape_string(cpv)))
- def has_key(self, cpv):
+ def __contains__(self, cpv):
cursor = self._db_cursor
cursor.execute(" ".join(
["SELECT %s FROM %s" %