* [gentoo-commits] portage r14791 - main/branches/2.1.7/pym/portage/proxy
@ 2009-11-07 1:10 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-11-07 1:10 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2009-11-07 01:10:33 +0000 (Sat, 07 Nov 2009)
New Revision: 14791
Modified:
main/branches/2.1.7/pym/portage/proxy/objectproxy.py
Log:
Define portage.proxy.objectproxy.ObjectProxy.__add__() to fix problem with string concatenation reported by dol-sen.
(trunk r14778)
Modified: main/branches/2.1.7/pym/portage/proxy/objectproxy.py
===================================================================
--- main/branches/2.1.7/pym/portage/proxy/objectproxy.py 2009-11-07 01:10:25 UTC (rev 14790)
+++ main/branches/2.1.7/pym/portage/proxy/objectproxy.py 2009-11-07 01:10:33 UTC (rev 14791)
@@ -55,6 +55,9 @@
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')())
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-07 1:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-07 1:10 [gentoo-commits] portage r14791 - main/branches/2.1.7/pym/portage/proxy Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox