From 0b3b9f278a1e50fc3236483d1b3d25b78db20021 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Mon, 27 Jan 2025 14:16:28 +0400 Subject: [PATCH] Remove a deprecated function. (#149) --- cssselect/xpath.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cssselect/xpath.py b/cssselect/xpath.py index 4255f66..ee59f89 100644 --- a/cssselect/xpath.py +++ b/cssselect/xpath.py @@ -14,7 +14,6 @@ import re import typing -import warnings from typing import Optional from cssselect.parser import ( @@ -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)."""