Skip to content

Commit

Permalink
Adjust as_unicode for breaking bs4 4.13 changes (#80)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jloehel authored Feb 14, 2025
1 parent 395b971 commit 8bf864f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
attrs==22.2.0
beautifulsoup4==4.11.2
beautifulsoup4==4.13.3
certifi==2022.12.7
chardet==5.2.0
click==8.1.3
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ python_requires = >=3.9

install_requires =
attrs >= 18.1, !=20.1.0
Beautifulsoup4[chardet] >= 4.0.0
Beautifulsoup4[chardet] >= 4.13.0
click >= 6.7, !=7.0
requests[use_chardet_on_py3] >= 2.7.0
saneyaml >= 0.5.2
Expand Down
2 changes: 1 addition & 1 deletion src/commoncode/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ def as_unicode(s):
if not s:
return s
assert isinstance(s, bytes), "s must be bytes but is: {}".format(s)
return UnicodeDammit(s).markup
return UnicodeDammit(s).unicode_markup

0 comments on commit 8bf864f

Please sign in to comment.