hashed_path: implement __repr__
authorZac Medico <zmedico@gentoo.org>
Tue, 20 Dec 2011 23:26:54 +0000 (15:26 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 20 Dec 2011 23:26:54 +0000 (15:26 -0800)
pym/portage/eclass_cache.py

index 1044ad02111187d7124ce9deac5ad1e84cd64e6d..cb2cf8a980892bd26aa8c0123421c84d9e6dd01a 100644 (file)
@@ -49,6 +49,8 @@ class hashed_path(object):
                setattr(self, attr, val)
                return val
 
+       def __repr__(self):
+               return "<portage.eclass_cache.hashed_path('%s')>" % (self.location,)
 
 class cache(object):
        """