Fix BeautifulSoup imports from future
This commit is contained in:
@@ -8,7 +8,7 @@ __all__ = [
|
||||
'HTMLParserTreeBuilder',
|
||||
]
|
||||
|
||||
from html.parser import HTMLParser
|
||||
from future.moves.html.parser import HTMLParser
|
||||
|
||||
try:
|
||||
from html.parser import HTMLParseError
|
||||
|
@@ -10,7 +10,8 @@ XML or HTML to reflect a new encoding; that's the tree builder's job.
|
||||
__license__ = "MIT"
|
||||
|
||||
import codecs
|
||||
from html.entities import codepoint2name
|
||||
from future.moves.html.entities import codepoint2name
|
||||
from future.builtins import chr
|
||||
import re
|
||||
import logging
|
||||
import string
|
||||
|
Reference in New Issue
Block a user