From: Arfrever Frehtes Taifersar Arahesis Date: Thu, 5 Nov 2009 23:13:41 +0000 (-0000) Subject: Define portage.proxy.objectproxy.ObjectProxy.__add__() to fix problem with string... X-Git-Tag: v2.2_rc49~7 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8e7396755ee162fe98f005e8729595c81a57795c;p=portage.git Define portage.proxy.objectproxy.ObjectProxy.__add__() to fix problem with string concatenation reported by dol-sen. svn path=/main/trunk/; revision=14778 --- diff --git a/pym/portage/proxy/objectproxy.py b/pym/portage/proxy/objectproxy.py index a064d7056..d392beb60 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')())