diff options
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/dep.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py index 54f039a38..5dac385f7 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -395,6 +395,9 @@ class _use_dep(object): self.conditional = conditional break + def __nonzero__(self): + return bool(self.tokens) + def __str__(self): if not self.tokens: return "" |