[entropy.core.settings.base] SystemSettings: __generic_parser() now returns ASCII-only lines

This commit is contained in:
Fabio Erculiani
2010-02-12 13:06:16 +01:00
parent 2354ead132
commit aaae62bfc2

View File

@@ -1331,7 +1331,10 @@ class SystemSettings(Singleton, EntropyPluginStore):
@return: raw text extracted from file
@rtype: list
"""
return entropy.tools.generic_file_content_parser(filepath)
lines = entropy.tools.generic_file_content_parser(filepath)
# filter out non-ASCII lines
lines = [x for x in lines if entropy.tools.is_valid_ascii(x)]
return lines
def __remove_repo_cache(self, repoid = None):
"""