Skip to content

Commit 2af9b30

Browse files
committed
fix ci
1 parent 9e1ee79 commit 2af9b30

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

w3lib/util.py

Lines changed: 7 additions & 1 deletion
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):
@@ -64,7 +70,7 @@ def to_bytes(
6470
def to_native_str(
6571
text: StrOrBytes, encoding: Optional[str] = None, errors: str = "strict"
6672
) -> str:
67-
""" Return str representation of `text` """
73+
"""Return str representation of `text`"""
6874
warn(
6975
"The w3lib.utils.to_native_str function is deprecated and "
7076
"will be removed in a future release. Please use "

0 commit comments

Comments
 (0)