[all] small fixed picked up by pytest

- unicode stuff
- make all regexps regex strings
This commit is contained in:
tobi-wan-kenobi 2020-06-02 20:13:39 +02:00
parent 9cadcee844
commit 5e40dfb28a
9 changed files with 12 additions and 10 deletions

View file

@ -122,7 +122,7 @@ class Module(core.module.Module):
return image if image else ""
def _remove_tags(self, txt):
return re.sub("<[^>]*>", "", txt)
return re.sub(r"<[^>]*>", "", txt)
def _create_item(self, entry, url, feed):
return {