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:
parent
34e1bb3e8d
commit
e6ef09084e
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue