File: //usr/local/lib/python3.9/site-packages/kombu/utils/__pycache__/objects.cpython-39.pyc
a
X>h� � @ sj d Z ddlmZ ddlmZ dZzddlmZ W n e yN ddlm
Z Y n0 e� ZG dd� de�ZdS ) zObject Utilities.� )�annotations)�RLock)�cached_property)�threaded_cached_propertyc sP e Zd ZdZd� fdd� Zd� fdd� Zdd� Zd d
� Zdd� Zd
d� Z � Z
S )r z"Implementation of Cached property.Nc sB t � �|� || _|| _t| d�s,| jj| _t| d�s>t� | _ d S )N�attrname�lock)
�super�__init__�_cached_property__set�_cached_property__del�hasattr�func�__name__r r r )�self�fget�fset�fdel�� __class__� �=/usr/local/lib/python3.9/site-packages/kombu/utils/objects.pyr s
zcached_property.__init__c s8 | j � t� �||�W d � S 1 s*0 Y d S �N)r r �__get__)r �instance�ownerr r r r $ s zcached_property.__get__c C s\ |d u r| S | j �6 | jd ur*| �||�}|j}||| j<