For python 3.x with boolean target, len() results in TypeError, so
authorZac Medico <zmedico@gentoo.org>
Tue, 22 Sep 2009 18:54:27 +0000 (18:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 22 Sep 2009 18:54:27 +0000 (18:54 -0000)
commitcee4de48aae88c5df32e147784fd53ab5fb3ea09
treeffe8ce683840493604b13f5ffd20f2d5f87bd7d4
parent443217dc61b0d112babf2a5f8e938b6058ff3a83
For python 3.x with boolean target, len() results in TypeError, so
make __len__ return 0 or 1 in this case.

svn path=/main/trunk/; revision=14377
pym/portage/proxy/objectproxy.py