diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-01-09 21:49:42 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-01-09 21:49:42 +0100 |
| commit | 9c0e4ac3ec3657c5b77ec4a50b47af08625d3985 (patch) | |
| tree | 5d50dc578374b172129c74161689edcb74822064 /python/tag.cc | |
| parent | 47feb903a8bc9b5ac4d93167b4c316ca82caa1b8 (diff) | |
| download | python-apt-9c0e4ac3ec3657c5b77ec4a50b47af08625d3985.tar.gz | |
* apt/package.py: Cleanup, move Origin to module-level, enhance Record
This commit includes multiple changes:
First of all, the code has been adjusted to follow PEP 8 and the documentation
has been improved.
Secondly, the Origin class has been moved out of the Package class into the
module, and its __repr__ has been changed.
Thirdly, the Record class has been enhances with some new methods, and the
attribute containing the string has been removed, as we can reproduce the
string using the TagSection in the _rec attribute. The methods added are
__contains__(), __iter__(), get() and iteritems().
Fourthly, the method getChangelog() has been fixed in some areas, especially
in the exception handling.
The method/property installedFiles() is now enclosing its file access into
a try/finally block.
All the testing code has been moved into a _test() function for now, until
the new testing functionality is implemented.
Diffstat (limited to 'python/tag.cc')
0 files changed, 0 insertions, 0 deletions
