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 1A2C6198005 for ; Tue, 19 Mar 2013 18:37:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6982E0566; Tue, 19 Mar 2013 18:37:09 +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 5FE13E0566 for ; Tue, 19 Mar 2013 18:37:09 +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 569E233D3D6 for ; Tue, 19 Mar 2013 18:37:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id E553FE4073 for ; Tue, 19 Mar 2013 18:37:06 +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: <1363718204.38358b20857bb048ad6ba2fce514df3319a2f349.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: 38358b20857bb048ad6ba2fce514df3319a2f349 X-VCS-Branch: master Date: Tue, 19 Mar 2013 18:37:06 +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: 73a7aab4-5d76-4141-84d8-930e29a395cf X-Archives-Hash: 39885f0d88b06db6f0c74935145fd188 commit: 38358b20857bb048ad6ba2fce514df3319a2f349 Author: Zac Medico gentoo org> AuthorDate: Tue Mar 19 18:36:44 2013 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Mar 19 18:36:44 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=38358b20 Task: implement __repr__ --- pym/_emerge/Task.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/pym/_emerge/Task.py b/pym/_emerge/Task.py index 40f5066..769884b 100644 --- a/pym/_emerge/Task.py +++ b/pym/_emerge/Task.py @@ -1,4 +1,4 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 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)))