From 8457e00ef8526641823799209cac3c753ef0f796 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 3 Feb 2011 21:49:31 +0100 Subject: [PATCH] parse_metadata_use(): omit empty text tokens. --- pym/repoman/utilities.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2