From: Zac Medico Date: Wed, 12 Aug 2009 00:26:26 +0000 (-0000) Subject: Implement ObjectProxy.__int__(). X-Git-Tag: v2.2_rc39~99 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=51863cd9655a0d334c731bf293835f8f8c8a9432;p=portage.git Implement ObjectProxy.__int__(). svn path=/main/trunk/; revision=14006 --- 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')())