Skip to content

Commit

Permalink
Remove a deprecated function. (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR authored Jan 27, 2025
1 parent 9e2ff26 commit 0b3b9f2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cssselect/xpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import re
import typing
import warnings
from typing import Optional

from cssselect.parser import (
Expand All @@ -38,17 +37,6 @@
)


@typing.no_type_check
def _unicode_safe_getattr(obj, name, default=None):
warnings.warn(
"_unicode_safe_getattr is deprecated and will be removed in the"
" next release, use getattr() instead",
DeprecationWarning,
stacklevel=2,
)
return getattr(obj, name, default)


class ExpressionError(SelectorError, RuntimeError):
"""Unknown or unsupported selector (eg. pseudo-class)."""

Expand Down

0 comments on commit 0b3b9f2

Please sign in to comment.