📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib64
›
python3.9
›
site-packages
›
mercurial
›
thirdparty
›
zope
›
interface
›
📁 __pycache__
📍
Lokasi:
/usr/lib64/python3.9/site-packages/mercurial/thirdparty/zope/interface/__pycache__
💾
Free:
45.7 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: declarations.cpython-39.opt-1.pyc
a �+�b�x � @ sl d Z ddlmZ dZddlZddlmZ ddlmZ ddlmZ ddl Z dd l mZ dd l mZ ddl mZ ddl mZ dd lmZ ddlmZ i ZdZdZG dd� de�ZG dd� de�ZG dd� de�Zdd� Zdd� ZeZdd� Zdd� Z dd � Z!G d!d"� d"�Z"G d#d$� d$�Z#d%d&� Z$d'd(� Z%d)d*� Z&G d+d,� d,e�Z'e'Z(e �)� Z*d-d,� Z'd.e'_+d/d0� Z,d1d2� Z-d3d4� Z.G d5d6� d6e�Z/e/Z0e/Z1zdd7l2m1Z1 W n e3�y� Y n0 G d8d9� d9ee1�Z4d:d;� Z5d<d=� Z6d>d?� Z7G d@dA� dA�Z8dBdC� Z9dDdE� Z:dFdG� Z;e;Z<dHdI� Z=e=Z>G dJdK� dKe�Z?e?Z@dOdLdM�ZAe� ZBzddNl2m<Z<mZm@Z@m>Z> W n e3�y` Y n0 e@� ZCdS )Pa� Implementation of interface declarations There are three flavors of declarations: - Declarations are used to simply name declared interfaces. - ImplementsDeclarations are used to express the interfaces that a class implements (that instances of the class provides). Implements specifications support inheriting interfaces. - ProvidesDeclarations are used to express interfaces directly provided by objects. � )�absolute_importZrestructuredtextN)�FunctionType)� MethodType)� ModuleType� )�advice)�InterfaceClass)�SpecificationBase)� Specification)�CLASS_TYPES)�PYTHON3zIClass advice impossible in Python3. Use the @%s class decorator instead.z\The %s API is deprecated, and will not work in Python3 Use the @%s class decorator instead.c @ s e Zd Zdd� Zdd� ZdS )�namedc C s || _ d S �N)�name)�selfr � r �V/usr/lib64/python3.9/site-packages/mercurial/thirdparty/zope/interface/declarations.py�__init__7 s znamed.__init__c C s | j |_|S r )r Z__component_name__�r �obr r r �__call__: s znamed.__call__N)�__name__� __module__�__qualname__r r r r r r r 5 s r c @ sL e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z e ZdS )�DeclarationzInterface declarationsc G s t �| t|�� d S r )r r �_normalizeargs�r � interfacesr r r r A s zDeclaration.__init__c C s, t �| |� z| `W n ty& Y n0 d S r )r �changedZ_v_attrs�AttributeError)r Zoriginally_changedr r r r D s zDeclaration.changedc C s | � |�o|| �� v S )z:Test whether an interface is in the specification )�extendsr )r � interfacer r r �__contains__K s zDeclaration.__contains__c C s | � � S )zCReturn an iterator for the interfaces in the specification �r �r r r r �__iter__Q s zDeclaration.__iter__c C s t | j�S )zCReturn an iterator of all included and extended interfaces )�iterZ__iro__r$ r r r � flattenedV s zDeclaration.flattenedc s t � fdd�| �� D �� S )z/Remove interfaces from a specification c s&