From 544bd31e76accfc13a730a607d8dafaeda25a6c3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 7 Nov 2009 01:10:33 +0000 Subject: [PATCH] Define portage.proxy.objectproxy.ObjectProxy.__add__() to fix problem with string concatenation reported by dol-sen. (trunk r14778) svn path=/main/branches/2.1.7/; revision=14791 --- pym/portage/proxy/objectproxy.py | 3 +++ 1 file changed, 3 insertions(+) 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')()) -- 2.26.2