summaryrefslogtreecommitdiff
path: root/apt/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/cache.py')
-rw-r--r--apt/cache.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt/cache.py b/apt/cache.py
index 384afe31..bbf2165b 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -101,6 +101,9 @@ class Cache(object):
def has_key(self, key):
return self._dict.has_key(key)
+ def __contains__(self, key):
+ return key in self._dict
+
def __len__(self):
return len(self._dict)