summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG4
-rw-r--r--bs4/dammit.py9
2 files changed, 4 insertions, 9 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 25fa1c4..43ddb84 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -43,6 +43,10 @@ Python 2 was revision 605.
* Fixed a crash when overriding multi_valued_attributes and using the
html5lib parser. [bug=1948488]
+* 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.)
+
= 4.10.0 (20210907)
* This is the first release of Beautiful Soup to only support Python
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=[\'"](.*?)[\'"].*\\?>'