diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-06-01 19:50:19 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-06-01 19:50:19 +0000 |
| commit | d2a55a7ccf141cd9706f62f87c74d10551f6a799 (patch) | |
| tree | 4db3a181428fba50d89cb22e2ce30ebbd6a1b5ce /apt/cache.py | |
| parent | a0596d73510acae4749480c209e0f318852fc83f (diff) | |
| download | python-apt-d2a55a7ccf141cd9706f62f87c74d10551f6a799.tar.gz | |
* apt/cache.py: small fixes
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt/cache.py b/apt/cache.py index 2b3e8ace..1988e26b 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -63,8 +63,8 @@ class MarkedChangesFilter(Filter): return False class FilteredCache(Cache): - def __init__(self): - Cache.__init__(self) + def __init__(self, progress=None): + Cache.__init__(self, progress) self._filtered = {} def __len__(self): return len(self._filtered) @@ -90,7 +90,7 @@ class FilteredCache(Cache): if __name__ == "__main__": print "Cache self test" apt_pkg.init() - c = Cache() + c = Cache(OpTextProgress()) print c.has_key("aptitude") p = c["aptitude"] print p.Name() |
