summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-12 00:26:26 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-12 00:26:26 +0000
commit51863cd9655a0d334c731bf293835f8f8c8a9432 (patch)
tree6ce0815f20e6c1c05d1ef57c97f594d93c754b62
parent95340b583d32ca440213e6e2bf41b5315497ccb6 (diff)
downloadportage-51863cd9655a0d334c731bf293835f8f8c8a9432.tar.gz
portage-51863cd9655a0d334c731bf293835f8f8c8a9432.tar.bz2
portage-51863cd9655a0d334c731bf293835f8f8c8a9432.zip
Implement ObjectProxy.__int__().
svn path=/main/trunk/; revision=14006
-rw-r--r--pym/portage/proxy/objectproxy.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/proxy/objectproxy.py b/pym/portage/proxy/objectproxy.py
index 00d3f6157..00c5076d1 100644
--- a/pym/portage/proxy/objectproxy.py
+++ b/pym/portage/proxy/objectproxy.py
@@ -64,3 +64,6 @@ class ObjectProxy(object):
def __nonzero__(self):
return bool(object.__getattribute__(self, '_get_target')())
+
+ def __int__(self):
+ return int(object.__getattribute__(self, '_get_target')())