Skip to content

Commit

Permalink
Adjust as_unicode for breaking bs4 4.13 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jloehel committed Feb 12, 2025
1 parent 395b971 commit 457d1f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 457d1f1

Please sign in to comment.