diff options
author | Mart Raudsepp <leio@gentoo.org> | 2009-08-24 14:29:52 +0300 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2009-08-24 14:29:52 +0300 |
commit | 365804f98215dfd340c664f55a5fdb5065bec57c (patch) | |
tree | 94f0ffb5be9e67e86f08d3ff49f3755cfa825801 /modules | |
parent | Clean up the way we ignore perl bindings (diff) | |
download | gentoo-bumpchecker-365804f98215dfd340c664f55a5fdb5065bec57c.tar.gz gentoo-bumpchecker-365804f98215dfd340c664f55a5fdb5065bec57c.tar.bz2 gentoo-bumpchecker-365804f98215dfd340c664f55a5fdb5065bec57c.zip |
Add a __repr__ method for package_module to ease debugging.
Now one can for example simply do print(latest_packages) to print out the whole
array for debugging.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/package_module.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/package_module.py b/modules/package_module.py index ece6798..f06e94f 100644 --- a/modules/package_module.py +++ b/modules/package_module.py @@ -64,6 +64,9 @@ class Package: print "Version: " + str(self.package_version) print "Name+Version: " + str(self.name_plus_version) print "Raw: " + str(self.raw_string) + + def __repr__(self): + return self.name_plus_version class PackageStatus: def __init__(self, name, portage_version, gnome_version, latest_version, status): |