From: Zac Medico Date: Tue, 29 Jul 2008 07:10:40 +0000 (-0000) Subject: Implement _use_dep.__nonzero__(). X-Git-Tag: v2.2_rc5~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=00ceaf872ab4a21de46ba9740d6ecf85b7d4e2f0;p=portage.git Implement _use_dep.__nonzero__(). svn path=/main/trunk/; revision=11258 --- 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 ""