summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-04 16:56:14 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-04 16:56:14 -0800
commitc202f11dc844edc8dea4ececc6ac8590af903cf0 (patch)
treef9e3faef1640ac023265d81eadc0e3dd2f0b3fd5
parent99883fc79e984177d7c5a1e245518f1d76e3e990 (diff)
downloadportage-c202f11dc844edc8dea4ececc6ac8590af903cf0.tar.gz
portage-c202f11dc844edc8dea4ececc6ac8590af903cf0.tar.bz2
portage-c202f11dc844edc8dea4ececc6ac8590af903cf0.zip
Revert "parse_metadata_use(): omit empty text tokens."
This reverts commit 52f6b55d51e2accaa446bc5d6920421959289baa. Since split() never return empty tokens, this patch does nothing.
-rw-r--r--pym/repoman/utilities.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py
index ceb1ba17d..9d4898e8a 100644
--- a/pym/repoman/utilities.py
+++ b/pym/repoman/utilities.py
@@ -157,8 +157,7 @@ def parse_metadata_use(xml_tree):
uselist[pkg_flag] = {}
# (flag_restrict can be None)
- uselist[pkg_flag][flag_restrict] = " ".join( \
- [x for x in "".join(inner_text).split() if x])
+ uselist[pkg_flag][flag_restrict] = " ".join("".join(inner_text).split())
return uselist