projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82e5cb0
)
Define portage.proxy.objectproxy.ObjectProxy.__add__() to fix problem with string...
author
Zac Medico
<zmedico@gentoo.org>
Sat, 7 Nov 2009 01:10:33 +0000
(
01:10
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 7 Nov 2009 01:10:33 +0000
(
01:10
-0000)
(trunk r14778)
svn path=/main/branches/2.1.7/; revision=14791
pym/portage/proxy/objectproxy.py
patch
|
blob
|
history
diff --git
a/pym/portage/proxy/objectproxy.py
b/pym/portage/proxy/objectproxy.py
index a064d705668739482fa25325a45f92e6c07eedc0..d392beb6032e22370ffad7ee2bb927c2116ca16c 100644
(file)
--- 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')())