From: Zac Medico Date: Tue, 19 Mar 2013 20:21:43 +0000 (-0700) Subject: Task.__repr__: handle python-trace X-Git-Tag: v2.2.0_alpha167~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84fec97d714d417d9c70643a74889c4c5f2ba530;p=portage.git Task.__repr__: handle python-trace --- diff --git a/pym/_emerge/Task.py b/pym/_emerge/Task.py index 769884bcf..250d45802 100644 --- a/pym/_emerge/Task.py +++ b/pym/_emerge/Task.py @@ -43,5 +43,8 @@ class Task(SlotObject): return "(%s)" % ", ".join(("'%s'" % x for x in self._hash_key)) def __repr__(self): + if self._hash_key is None: + # triggered by python-trace + return SlotObject.__repr__(self) return "<%s (%s)>" % (self.__class__.__name__, ", ".join(("'%s'" % x for x in self._hash_key)))