Fix BeautifulSoup imports from future

This commit is contained in:
JonnyWong16 2020-03-23 22:01:18 -07:00
parent 4564623884
commit 1c932057b8
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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