summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dep.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py
index bf42d2ba8..2a1a3cfa5 100644
--- a/pym/portage/dep.py
+++ b/pym/portage/dep.py
@@ -63,11 +63,7 @@ def strip_empty(myarr):
@rtype: Array
@return: The array with empty elements removed
"""
-
- for x in range(len(myarr)-1, -1, -1):
- if not myarr[x]:
- del myarr[x]
- return myarr
+ return [x for x in myarr if x]
def paren_reduce(mystr,tokenize=1):
"""