We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
as_unicode
1 parent 395b971 commit 457d1f1Copy full SHA for 457d1f1
setup.cfg
@@ -41,7 +41,7 @@ python_requires = >=3.9
41
42
install_requires =
43
attrs >= 18.1, !=20.1.0
44
- Beautifulsoup4[chardet] >= 4.0.0
+ Beautifulsoup4[chardet] >= 4.13.0
45
click >= 6.7, !=7.0
46
requests[use_chardet_on_py3] >= 2.7.0
47
saneyaml >= 0.5.2
src/commoncode/text.py
@@ -143,4 +143,4 @@ def as_unicode(s):
143
if not s:
144
return s
145
assert isinstance(s, bytes), "s must be bytes but is: {}".format(s)
146
- return UnicodeDammit(s).markup
+ return UnicodeDammit(s).unicode_markup
0 commit comments