summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-09-15 09:09:03 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-09-15 09:09:03 +0200
commitde62ee741abca9655e8556eb1cebb9dd5d6d2d38 (patch)
treed874a1bf350e3be2e160a0586fa0feece961a0c4 /portato
parent5faa6122d7d1eb4097b6207d4495dd5c932eba80 (diff)
downloadportato-de62ee741abca9655e8556eb1cebb9dd5d6d2d38.tar.gz
portato-de62ee741abca9655e8556eb1cebb9dd5d6d2d38.tar.bz2
portato-de62ee741abca9655e8556eb1cebb9dd5d6d2d38.zip
Add a __str__ method to backend.Package
Diffstat (limited to '')
-rw-r--r--portato/backend/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/portato/backend/package.py b/portato/backend/package.py
index c9f87ac..f288bef 100644
--- a/portato/backend/package.py
+++ b/portato/backend/package.py
@@ -27,6 +27,11 @@ class Package (_Package):
@type cpv: string (cat/pkg-ver)"""
self._cpv = cpv
+
+ def __repr__ (self):
+ return "<Package '%s' @0x%x>" % (self._cpv, id(self))
+
+ __str__ = __repr__
#
# implemented