Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/debtcollector/__pycache__/removals.cpython-39.pyc
Ðазад
a j�h46 � @ sr d dl Z d dlZd dlZd dlmZ dd� Zddd�ZG dd� de�Zdd d�Z ddd �Z ddd�Zddd�ZdS )� N)�_utilsc C s t �| �d S )N� )r �get_qualified_name)�obj� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/debtcollector/removals.py�_get_qualified_name s r c C s. t d| ||f�D ]}||�}|r| S q|S )z=Fetch first non-none/empty result of applying ``apply_func``.N)�filter)�fget�fset�fdelZ apply_func�value_not_found�f�resultr r r �_fetch_first_result s r c @ sx e Zd ZdZdddd�Zdddddedddf dd �Zd d� Zdd � Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� ZdS )�removed_propertya> Property descriptor that deprecates a property. This works like the ``@property`` descriptor but can be used instead to provide the same functionality and also interact with the :mod:`warnings` module to warn when a property is accessed, set and/or deleted. :param message: string used as ending contents of the deprecate message :param version: version string (represents the version this deprecation was created in) :param removal_version: version string (represents the version this deprecation will be removed in); a string of '?' will denote this will be removed in some future unknown version :param stacklevel: stacklevel used in the :func:`warnings.warn` function to locate where the users code is when reporting the deprecation call (the default being 3) :param category: the :mod:`warnings` category to use, defaults to :py:class:`DeprecationWarning` if not provided z'Setting the '%s' property is deprecatedz'Reading the '%s' property is deprecatedz(Deleting the '%s' property is deprecated)�set�get�deleteN� c C s^ || _ || _|| _|| _|| _|| _|| _| | _|d u rNt� |�rNt |dd �}i | _|| _d S )N�__doc__) r r r � stacklevel�category�version�removal_version�message�inspect� isfunction�getattr�_message_cacher ) �selfr r r �docr r r r r r r r �__init__@ s zremoved_property.__init__c C sn z| j | }W nZ tyh | j| }|t| j| j| jtdd� }tj || j | j| jd�}|| j |<