Skip to content

Commit 1a89acb

Browse files
committed
fix ci
1 parent 9e1ee79 commit 1a89acb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

w3lib/util.py

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
def str_to_unicode(
77
text: StrOrBytes, encoding: Optional[str] = None, errors: str = "strict"
88
) -> str:
9+
warn(
10+
"The w3lib.utils.str_to_unicode function is deprecated and "
11+
"will be removed in a future release.",
12+
DeprecationWarning,
13+
stacklevel=2,
14+
)
915
if encoding is None:
1016
encoding = "utf-8"
1117
if isinstance(text, bytes):

0 commit comments

Comments
 (0)