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 7cdc107
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ commands =
[testenv:typing]
basepython = python3
deps =
# mypy would error if pytest (or its sub) not found
pytest
mypy==0.910
commands =
mypy --show-error-codes {posargs: w3lib tests}
Expand Down
8 changes: 7 additions & 1 deletion 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 Expand Up @@ -64,7 +70,7 @@ def to_bytes(
def to_native_str(
text: StrOrBytes, encoding: Optional[str] = None, errors: str = "strict"
) -> str:
""" Return str representation of `text` """
"""Return str representation of `text`"""
warn(
"The w3lib.utils.to_native_str function is deprecated and "
"will be removed in a future release. Please use "
Expand Down

0 comments on commit 7cdc107

Please sign in to comment.