use setattr

This commit is contained in:
Jakub Trllo 2025-10-20 14:58:34 +02:00
parent 882c0bcc6a
commit d7433f84d7

View file

@ -185,7 +185,7 @@ def _backwards_compatibility_product_name(func):
# Add attribute to function to identify it as the new function
# so other addons can easily identify it.
# >>> geattr(get_product_name, "use_entities", False)
func.use_entities = True
setattr(func, "use_entities", True)
@wraps(func)
def inner(*args, **kwargs):