diff options
Diffstat (limited to 'bitbake/lib/bs4/dammit.py')
-rw-r--r-- | bitbake/lib/bs4/dammit.py | 8 |
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 | ||
11 | from pdb import set_trace | ||
12 | import codecs | 11 | import codecs |
13 | from html.entities import codepoint2name | 12 | from html.entities import codepoint2name |
14 | import re | 13 | import re |
15 | import logging | 14 | import logging |
16 | import string | ||
17 | 15 | ||
18 | # Import a library to autodetect character encodings. | 16 | # Import a library to autodetect character encodings. |
19 | chardet_type = None | 17 | chardet_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/. | ||
42 | try: | ||
43 | import iconv_codec | ||
44 | except ImportError: | ||
45 | pass | ||
46 | |||
47 | xml_encoding_re = re.compile( | 39 | xml_encoding_re = re.compile( |
48 | r'^<\?.*encoding=[\'"](.*?)[\'"].*\?>'.encode(), re.I) | 40 | r'^<\?.*encoding=[\'"](.*?)[\'"].*\?>'.encode(), re.I) |
49 | html_meta_re = re.compile( | 41 | html_meta_re = re.compile( |