str(ret) on line 4074 in portage.py-1.348 should be str(myret)
I fixed this bug and another like this one in cvs.
*** Bug 34825 has been marked as a duplicate of this bug. ***
*** Bug 35074 has been marked as a duplicate of this bug. ***
*** Bug 35175 has been marked as a duplicate of this bug. ***
*** Bug 35188 has been marked as a duplicate of this bug. ***
*** Bug 36418 has been marked as a duplicate of this bug. ***