Skip to content

Commit 8bf864f

Browse files
authored
Adjust as_unicode for breaking bs4 4.13 changes (#80)
Adjust `as_unicode` for breaking bs4 4.13 changes Fixes: #79 Reference: https://git.launchpad.net/beautifulsoup/tree/CHANGELOG#n431 Signed-off-by: Jürgen Löhel <[email protected]>
1 parent 395b971 commit 8bf864f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
attrs==22.2.0
2-
beautifulsoup4==4.11.2
2+
beautifulsoup4==4.13.3
33
certifi==2022.12.7
44
chardet==5.2.0
55
click==8.1.3

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)