Update developer sync to work with feedparser 6

feedparser 6 went through some refactorings, this updates rss.py to use
the new location of _HTMLSanitizer
This commit is contained in:
Patrick Creech 2024-07-11 14:20:49 -04:00 committed by kevin
parent 34e1bb3e8d
commit e6ef09084e

View file

@ -9,7 +9,7 @@ import feedparser
import re
import sys
feedparser._HTMLSanitizer.unacceptable_elements_with_end_tag.add('<div>')
feedparser.sanitizer._HTMLSanitizer.unacceptable_elements_with_end_tag.add('<div>')
defenc = "utf-8" if sys.getdefaultencoding() == "ascii" else sys.getdefaultencoding()