Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lucywang000 committed Aug 9, 2021
1 parent 9e1ee79 commit 1a89acb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions w3lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
def str_to_unicode(
text: StrOrBytes, encoding: Optional[str] = None, errors: str = "strict"
) -> str:
warn(
"The w3lib.utils.str_to_unicode function is deprecated and "
"will be removed in a future release.",
DeprecationWarning,
stacklevel=2,
)
if encoding is None:
encoding = "utf-8"
if isinstance(text, bytes):
Expand Down

0 comments on commit 1a89acb

Please sign in to comment.