Skip to content

Commit 0b3b9f2

Browse files
authored
Remove a deprecated function. (#149)
1 parent 9e2ff26 commit 0b3b9f2

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

cssselect/xpath.py

-12
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import re
1616
import typing
17-
import warnings
1817
from typing import Optional
1918

2019
from cssselect.parser import (
@@ -38,17 +37,6 @@
3837
)
3938

4039

41-
@typing.no_type_check
42-
def _unicode_safe_getattr(obj, name, default=None):
43-
warnings.warn(
44-
"_unicode_safe_getattr is deprecated and will be removed in the"
45-
" next release, use getattr() instead",
46-
DeprecationWarning,
47-
stacklevel=2,
48-
)
49-
return getattr(obj, name, default)
50-
51-
5240
class ExpressionError(SelectorError, RuntimeError):
5341
"""Unknown or unsupported selector (eg. pseudo-class)."""
5442

0 commit comments

Comments
 (0)