Skip to content

Commit 457d1f1

Browse files
committed
Adjust as_unicode for breaking bs4 4.13 changes
Fixes: aboutcode-org#79 See: https://git.launchpad.net/beautifulsoup/tree/CHANGELOG#n431 Signed-off-by: Jürgen Löhel <[email protected]>
1 parent 395b971 commit 457d1f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ python_requires = >=3.9
4141

4242
install_requires =
4343
attrs >= 18.1, !=20.1.0
44-
Beautifulsoup4[chardet] >= 4.0.0
44+
Beautifulsoup4[chardet] >= 4.13.0
4545
click >= 6.7, !=7.0
4646
requests[use_chardet_on_py3] >= 2.7.0
4747
saneyaml >= 0.5.2

src/commoncode/text.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,4 @@ def as_unicode(s):
143143
if not s:
144144
return s
145145
assert isinstance(s, bytes), "s must be bytes but is: {}".format(s)
146-
return UnicodeDammit(s).markup
146+
return UnicodeDammit(s).unicode_markup

0 commit comments

Comments
 (0)