summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/util.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pym/portage/util.py b/pym/portage/util.py
index 821513ae6..af99adedd 100644
--- a/pym/portage/util.py
+++ b/pym/portage/util.py
@@ -969,9 +969,7 @@ class ObjectProxy(object):
return object.__getattribute__(self, '_get_target')() != other
def __nonzero__(self):
- if object.__getattribute__(self, '_get_target')():
- return True
- return False
+ return bool(object.__getattribute__(self, '_get_target')())
class LazyItemsDict(dict):
"""A mapping object that behaves like a standard dict except that it allows