Define portage.repository.config.RepoConfig.__repr__().
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Sun, 18 Dec 2011 21:55:58 +0000 (22:55 +0100)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Sun, 18 Dec 2011 21:55:58 +0000 (22:55 +0100)
pym/portage/repository/config.py

index eb72070c93ca10b59ae992555ca8eb372d6e1478..0b99e1bf5bdbd73f056a764dc2ed1f31b9df1b20 100644 (file)
@@ -270,6 +270,9 @@ class RepoConfig(object):
                repo_msg.append("")
                return "\n".join(repo_msg)
 
+       def __repr__(self):
+               return "<portage.repository.config.RepoConfig(name='%s', location='%s')>" % (self.name, _unicode_decode(self.location))
+
        def __str__(self):
                d = {}
                for k in self.__slots__: