diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-29 07:10:40 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-29 07:10:40 +0000 |
commit | 00ceaf872ab4a21de46ba9740d6ecf85b7d4e2f0 (patch) | |
tree | 3c9241c7c130a67f24f6402519323bed3bf75b0e | |
parent | 3d709f2077b9d3c2d32c859c1f4210d896fcdb20 (diff) | |
download | portage-00ceaf872ab4a21de46ba9740d6ecf85b7d4e2f0.tar.gz portage-00ceaf872ab4a21de46ba9740d6ecf85b7d4e2f0.tar.bz2 portage-00ceaf872ab4a21de46ba9740d6ecf85b7d4e2f0.zip |
Implement _use_dep.__nonzero__().
svn path=/main/trunk/; revision=11258
-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 "" |