From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QeZ76-0000jW-6q for garchives@archives.gentoo.org; Wed, 06 Jul 2011 20:54:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB45421C131; Wed, 6 Jul 2011 20:54:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9B94921C130 for ; Wed, 6 Jul 2011 20:54:20 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 142D82AC025 for ; Wed, 6 Jul 2011 20:54:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 361C48004A for ; Wed, 6 Jul 2011 20:54:19 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <88cfa5eca002820e97c37bf095e92307a3873106.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/basepm/ X-VCS-Repository: proj/gentoopm X-VCS-Files: gentoopm/basepm/repo.py X-VCS-Directories: gentoopm/basepm/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 88cfa5eca002820e97c37bf095e92307a3873106 Date: Wed, 6 Jul 2011 20:54:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 60fc25bd810065ebedf43f8e71207a8d commit: 88cfa5eca002820e97c37bf095e92307a3873106 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Wed Jul 6 20:32:44 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Wed Jul 6 20:32:44 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoopm.git;= a=3Dcommit;h=3D88cfa5ec Add a __repr__ for PMRepo*. --- gentoopm/basepm/repo.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/gentoopm/basepm/repo.py b/gentoopm/basepm/repo.py index 5b1bac0..87d0825 100644 --- a/gentoopm/basepm/repo.py +++ b/gentoopm/basepm/repo.py @@ -45,6 +45,10 @@ class PMRepositoryDict(ABCObject): """ pass =20 + def __repr__(self): + return '%s([\n%s])' % (self.__class__.__name__, + ',\n'.join(['\t%s' % repr(x) for x in self])) + class PMRepository(PMPackageSet): """ Base abstract class for a single repository. @@ -69,3 +73,6 @@ class PMEbuildRepository(PMRepository): Return the canonical path to the ebuild repository. """ pass + + def __repr__(self): + return '%s(%s)' % (self.__class__.__name__, repr(self.name))