diff options
-rw-r--r-- | pym/portage/proxy/objectproxy.py | 3 |
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')()) |