From 3d709f2077b9d3c2d32c859c1f4210d896fcdb20 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 29 Jul 2008 06:44:49 +0000 Subject: [PATCH] Fix _use_dep.__str__() to work correctly in the case when conditional USE deps have evaluated to nothing (empty string rather than []). Thanks to ABCD for reporting. svn path=/main/trunk/; revision=11257 --- pym/portage/dep.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage/dep.py b/pym/portage/dep.py index ba22a2b2a..54f039a38 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -396,6 +396,8 @@ class _use_dep(object): break def __str__(self): + if not self.tokens: + return "" return "[%s]" % (",".join(self.tokens),) def evaluate_conditionals(self, use): -- 2.26.2