From 1a89acbc1a015280375a649ec27f6a7605f1c20c Mon Sep 17 00:00:00 2001 From: Lucy Wang Date: Mon, 9 Aug 2021 14:29:31 +0800 Subject: [PATCH] fix ci --- w3lib/util.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/w3lib/util.py b/w3lib/util.py index 58ca867f..8e0a5f37 100644 --- a/w3lib/util.py +++ b/w3lib/util.py @@ -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):