summaryrefslogtreecommitdiff
path: root/bs4
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2021-12-19 14:07:12 -0500
committerLeonard Richardson <leonardr@segfault.org>2021-12-19 14:07:12 -0500
commit21e42d700be98412003980ccd707af1ee7ab60f8 (patch)
tree0d769121678906969200cde9157c46613dc0f055 /bs4
parent497bf714d07e491bc811abd64e5fe3391564998d (diff)
Removed support for the iconv_codec library, which doesn't seem
to exist anymore and was never put up on PyPI. (The closest replacement on PyPI, iconv_codecs, is GPL-licensed, so we can't use it.)
Diffstat (limited to 'bs4')
-rw-r--r--bs4/dammit.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/bs4/dammit.py b/bs4/dammit.py
index de016ca..50664e7 100644
--- a/bs4/dammit.py
+++ b/bs4/dammit.py
@@ -48,15 +48,6 @@ else:
def chardet_dammit(s):
return None
-# Available from http://cjkpython.i18n.org/.
-#
-# TODO: This doesn't work anymore and the closest thing, iconv_codecs,
-# is GPL-licensed. Check whether this is still necessary.
-try:
- import iconv_codec
-except ImportError:
- pass
-
# Build bytestring and Unicode versions of regular expressions for finding
# a declared encoding inside an XML or HTML document.
xml_encoding = '^\\s*<\\?.*encoding=[\'"](.*?)[\'"].*\\?>'