From 84fec97d714d417d9c70643a74889c4c5f2ba530 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 19 Mar 2013 13:21:43 -0700 Subject: [PATCH] Task.__repr__: handle python-trace --- pym/_emerge/Task.py | 3 +++ 1 file changed, 3 insertions(+) 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))) -- 2.26.2