diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-11-05 23:13:41 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-11-05 23:13:41 +0000 |
commit | 8e7396755ee162fe98f005e8729595c81a57795c (patch) | |
tree | 5dd1e4b144650c2c6691b8406f01570b5c410d72 | |
parent | Decode git output in _emerge.actions.git_sync_timestamps() for bug #291790. (diff) | |
download | portage-idfetch-8e7396755ee162fe98f005e8729595c81a57795c.tar.gz portage-idfetch-8e7396755ee162fe98f005e8729595c81a57795c.tar.bz2 portage-idfetch-8e7396755ee162fe98f005e8729595c81a57795c.zip |
Define portage.proxy.objectproxy.ObjectProxy.__add__() to fix problem with string concatenation reported by dol-sen.
svn path=/main/trunk/; revision=14778
-rw-r--r-- | pym/portage/proxy/objectproxy.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/proxy/objectproxy.py b/pym/portage/proxy/objectproxy.py index a064d705..d392beb6 100644 --- a/pym/portage/proxy/objectproxy.py +++ b/pym/portage/proxy/objectproxy.py @@ -55,6 +55,9 @@ class ObjectProxy(object): def __str__(self): return str(object.__getattribute__(self, '_get_target')()) + def __add__(self, other): + return self.__str__() + other + def __hash__(self): return hash(object.__getattribute__(self, '_get_target')()) |