Fix BeautifulSoup imports from future
This commit is contained in:
@@ -8,7 +8,7 @@ __all__ = [
|
|||||||
'HTMLParserTreeBuilder',
|
'HTMLParserTreeBuilder',
|
||||||
]
|
]
|
||||||
|
|
||||||
from html.parser import HTMLParser
|
from future.moves.html.parser import HTMLParser
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from html.parser import HTMLParseError
|
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"
|
__license__ = "MIT"
|
||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
from html.entities import codepoint2name
|
from future.moves.html.entities import codepoint2name
|
||||||
|
from future.builtins import chr
|
||||||
import re
|
import re
|
||||||
import logging
|
import logging
|
||||||
import string
|
import string
|
||||||
|
Reference in New Issue
Block a user