File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 6
6
def str_to_unicode (
7
7
text : StrOrBytes , encoding : Optional [str ] = None , errors : str = "strict"
8
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
+ )
9
15
if encoding is None :
10
16
encoding = "utf-8"
11
17
if isinstance (text , bytes ):
@@ -64,7 +70,7 @@ def to_bytes(
64
70
def to_native_str (
65
71
text : StrOrBytes , encoding : Optional [str ] = None , errors : str = "strict"
66
72
) -> str :
67
- """ Return str representation of `text` """
73
+ """Return str representation of `text`"""
68
74
warn (
69
75
"The w3lib.utils.to_native_str function is deprecated and "
70
76
"will be removed in a future release. Please use "
You can’t perform that action at this time.
0 commit comments