We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e1ee79 commit 1a89acbCopy full SHA for 1a89acb
w3lib/util.py
@@ -6,6 +6,12 @@
6
def str_to_unicode(
7
text: StrOrBytes, encoding: Optional[str] = None, errors: str = "strict"
8
) -> 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
+ )
15
if encoding is None:
16
encoding = "utf-8"
17
if isinstance(text, bytes):
0 commit comments