diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-09-20 11:36:25 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-09-20 11:36:25 +0000 |
| commit | aff4a3d2c1280da136198463a51fff5026194048 (patch) | |
| tree | fa07d8045fea9d5485bca754b31bb25fa9a1d5e8 /tests | |
| parent | 86af28f7da01d549fc1cd6f0ebff17a7fe764eb8 (diff) | |
| download | python-apt-aff4a3d2c1280da136198463a51fff5026194048.tar.gz | |
* added __iter__ support to apt/cache.py
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/apt-test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/apt-test.py b/tests/apt-test.py index f1bc5593..6205cf60 100644 --- a/tests/apt-test.py +++ b/tests/apt-test.py @@ -7,8 +7,7 @@ if __name__ == "__main__": progress = apt.progress.OpTextProgress() cache = apt.Cache(progress) print cache - for name in cache.keys(): - pkg = cache[name] + for pkg in cache: if pkg.isUpgradable: pkg.markInstall() for pkg in cache.getChanges(): |
