summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dep.py2
1 files changed, 2 insertions, 0 deletions
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):