summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bs4/dammit.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bs4/dammit.py')
-rw-r--r--bitbake/lib/bs4/dammit.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/bitbake/lib/bs4/dammit.py b/bitbake/lib/bs4/dammit.py
index 805aa908a5..7ad9e0dd1e 100644
--- a/bitbake/lib/bs4/dammit.py
+++ b/bitbake/lib/bs4/dammit.py
@@ -8,12 +8,10 @@ XML or HTML to reflect a new encoding; that's the tree builder's job.
8""" 8"""
9__license__ = "MIT" 9__license__ = "MIT"
10 10
11from pdb import set_trace
12import codecs 11import codecs
13from html.entities import codepoint2name 12from html.entities import codepoint2name
14import re 13import re
15import logging 14import logging
16import string
17 15
18# Import a library to autodetect character encodings. 16# Import a library to autodetect character encodings.
19chardet_type = None 17chardet_type = None
@@ -38,12 +36,6 @@ except ImportError:
38 def chardet_dammit(s): 36 def chardet_dammit(s):
39 return None 37 return None
40 38
41# Available from http://cjkpython.i18n.org/.
42try:
43 import iconv_codec
44except ImportError:
45 pass
46
47xml_encoding_re = re.compile( 39xml_encoding_re = re.compile(
48 r'^<\?.*encoding=[\'"](.*?)[\'"].*\?>'.encode(), re.I) 40 r'^<\?.*encoding=[\'"](.*?)[\'"].*\?>'.encode(), re.I)
49html_meta_re = re.compile( 41html_meta_re = re.compile(