projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e13ec0
)
Task: implement __repr__
author
Zac Medico
<zmedico@gentoo.org>
Tue, 19 Mar 2013 18:36:44 +0000
(11:36 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 19 Mar 2013 18:36:44 +0000
(11:36 -0700)
pym/_emerge/Task.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/Task.py
b/pym/_emerge/Task.py
index 40f5066c011d5a8788815ee73af46130dfdb956b..769884bcf5a25177e69db01aeb406c7067ebffc3 100644
(file)
--- a/
pym/_emerge/Task.py
+++ b/
pym/_emerge/Task.py
@@
-1,4
+1,4
@@
-# Copyright 1999-201
2
Gentoo Foundation
+# Copyright 1999-201
3
Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
from portage.util.SlotObject import SlotObject
@@
-41,3
+41,7
@@
class Task(SlotObject):
strings.
"""
return "(%s)" % ", ".join(("'%s'" % x for x in self._hash_key))
+
+ def __repr__(self):
+ return "<%s (%s)>" % (self.__class__.__name__,
+ ", ".join(("'%s'" % x for x in self._hash_key)))