diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-03 10:38:46 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-03 10:38:46 +0000 |
| commit | 778a4b5fa470c03a598f3cf6f81ab73c3855f488 (patch) | |
| tree | 77bda2c5babe7e826539d21b2190985f6e20a09a /apt | |
| parent | 7d126728ae138e08bfef5abd71de1e608ee7ea55 (diff) | |
| download | python-apt-778a4b5fa470c03a598f3cf6f81ab73c3855f488.tar.gz | |
* some docstrings added, more api fixing
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/cache.py | 6 | ||||
| -rw-r--r-- | apt/package.py | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/apt/cache.py b/apt/cache.py index 39640da7..7ec99c22 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -25,7 +25,11 @@ from apt.progress import OpTextProgress from UserDict import UserDict class Cache(object): - """ Package cache object """ + """ Dictionary-like package cache + This class has all the packages that are available in it's + dictionary + """ + def __init__(self, progress=None): self._callbacks = {} self.open(progress) diff --git a/apt/package.py b/apt/package.py index bae90b05..2368327b 100644 --- a/apt/package.py +++ b/apt/package.py @@ -23,7 +23,8 @@ import apt_pkg, string import random class Package(object): - + """ This class represents a package in the cache + """ def __init__(self, cache, depcache, records, pcache, pkgiter): """ Init the Package object """ self._cache = cache # low level cache |
