From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 253C5198005 for ; Tue, 19 Mar 2013 20:22:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A0052E039A; Tue, 19 Mar 2013 20:22:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 377F7E039A for ; Tue, 19 Mar 2013 20:22:11 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 47F8033BEB1 for ; Tue, 19 Mar 2013 20:22:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D80F6E4073 for ; Tue, 19 Mar 2013 20:22:08 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1363724503.84fec97d714d417d9c70643a74889c4c5f2ba530.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/Task.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 84fec97d714d417d9c70643a74889c4c5f2ba530 X-VCS-Branch: master Date: Tue, 19 Mar 2013 20:22:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a53f6239-b774-4dd4-b79d-29ea5928217b X-Archives-Hash: 7a8dac07f9bc05c2ed42ee9b3e8b6322 commit: 84fec97d714d417d9c70643a74889c4c5f2ba530 Author: Zac Medico gentoo org> AuthorDate: Tue Mar 19 20:21:43 2013 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Mar 19 20:21:43 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=84fec97d Task.__repr__: handle python-trace --- pym/_emerge/Task.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/pym/_emerge/Task.py b/pym/_emerge/Task.py index 769884b..250d458 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)))