From: Zac Medico Date: Sat, 5 Feb 2011 00:56:14 +0000 (-0800) Subject: Revert "parse_metadata_use(): omit empty text tokens." X-Git-Tag: v2.2.0_alpha20~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c202f11dc844edc8dea4ececc6ac8590af903cf0;p=portage.git Revert "parse_metadata_use(): omit empty text tokens." This reverts commit 52f6b55d51e2accaa446bc5d6920421959289baa. Since split() never return empty tokens, this patch does nothing. --- 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