From: Oleg Broytman Date: Tue, 31 Oct 2023 16:31:11 +0000 (+0300) Subject: Fix(parse_html): Fix import X-Git-Tag: 5.0.0~67 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=8a33ee42d7f8edff076734eba8c1718da8127b22;p=bookmarks_db.git Fix(parse_html): Fix import --- diff --git a/parse_html/bkmk_parse_html.py b/parse_html/bkmk_parse_html.py index d885d52..2e7df1a 100644 --- a/parse_html/bkmk_parse_html.py +++ b/parse_html/bkmk_parse_html.py @@ -16,7 +16,7 @@ import os import re from htmlentitydefs import name2codepoint -from ..compat import unicode, unichr +from compat import unicode, unichr DEFAULT_CHARSET = "cp1251" # Stupid default for Russian Cyrillic parsers = [] diff --git a/parse_html/bkmk_ph_beautifulsoup.py b/parse_html/bkmk_ph_beautifulsoup.py index 888f868..94a572b 100644 --- a/parse_html/bkmk_ph_beautifulsoup.py +++ b/parse_html/bkmk_ph_beautifulsoup.py @@ -16,7 +16,7 @@ from sgmllib import SGMLParser, SGMLParseError from BeautifulSoup import BeautifulSoup, CData from .bkmk_ph_util import HTMLParser -from ..compat import string_type +from compat import string_type DEFAULT_CHARSET = "cp1251" # Stupid default for Russian Cyrillic diff --git a/parse_html/bkmk_ph_beautifulsoup4.py b/parse_html/bkmk_ph_beautifulsoup4.py index 33a2e18..fbd54ff 100644 --- a/parse_html/bkmk_ph_beautifulsoup4.py +++ b/parse_html/bkmk_ph_beautifulsoup4.py @@ -14,7 +14,7 @@ __all__ = ['parse_html'] from bs4 import BeautifulSoup from .bkmk_ph_util import HTMLParser -from ..compat import string_type +from compat import string_type universal_charset = "utf-8" DEFAULT_CHARSET = "cp1251" # Stupid default for Russian Cyrillic