From: Michał Górny Date: Thu, 3 Feb 2011 20:49:31 +0000 (+0100) Subject: parse_metadata_use(): omit empty text tokens. X-Git-Tag: v2.2.0_alpha20~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=52f6b55d51e2accaa446bc5d6920421959289baa;p=portage.git parse_metadata_use(): omit empty text tokens. --- diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index 9d4898e8a..ceb1ba17d 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -157,7 +157,8 @@ def parse_metadata_use(xml_tree): uselist[pkg_flag] = {} # (flag_restrict can be None) - uselist[pkg_flag][flag_restrict] = " ".join("".join(inner_text).split()) + uselist[pkg_flag][flag_restrict] = " ".join( \ + [x for x in "".join(inner_text).split() if x]) return uselist