mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user