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 66def 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(
6470def 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 "
You can’t perform that action at this time.
0 commit comments