404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.221.188.241: ~ $
3

��[!�@s|dZddlmZmZddlmZddlmZmZddlm	Z	m
Z
mZddlZefZ
ddd�Zdd	d
�Zddd�Zd
d�ZdS)z!Verify interface implementations
�)�BrokenImplementation�DoesNotImplement)�BrokenMethodImplementation)�FunctionType�
MethodType)�
fromMethod�fromFunction�MethodNc
Csh|dkr|j}n|j}|r.||�r.t|���x2|jd�D�]"\}}yt||�}Wn4tk
r�t|t�rz|dkrzw<t||��YnXt|t�s�q<t|t	�r�t
jddkr�t|t�r�|dkr�t
|||dd�}nt
|||d�}nVt|t�o�t|j�t	k�r
t|||�}n.t|t��r$|dk�r$q<nt|�s<t|d��q<|j�}|j�}t||�}	|	r<t||	��q<WdS)	a�Verify that 'candidate' might correctly implements 'iface'.

    This involves:

      o Making sure the candidate defines all the necessary methods

      o Making sure the methods have the correct signature

      o Making sure the candidate asserts that it implements the interface

    Note that this isn't the same as verifying that the class does
    implement the interface.

    If optional tentative is true, suppress the "is implemented by" test.
    �c�r�)�nameZimlevel)r
zNot a methodT)Z
implementedByZ
providedByrZnamesAndDescriptions�getattr�AttributeError�
isinstancer	rr�sys�version_info�typer�MethodTypes�__func__r�property�callablerZgetSignatureInfo�	_incompat)
�iface�	candidate�	tentative�vtypeZtesterr
Zdesc�attr�methZmess�r�/usr/lib64/python3.6/verify.py�_verifysB

 



r!cCst|||dd�S)Nr
)r)r!)rrrrrr �verifyClasshsr"cCst|||dd�S)N�o)r)r!)rrrrrr �verifyObjectksr$cCsrt|d�t|d�krdSt|d�t|d�krB|drBdS|drX|drXdS|drn|drndSdS)	N�requiredz*implementation requires too many argumentsZ
positionalZvarargsz-implementation doesn't allow enough arguments�kwargsz0implementation doesn't support keyword argumentsz1implementation doesn't support variable arguments)�len)r%Zimplementedrrr rns
r)rN)r)r)�__doc__Zzope.interface.exceptionsrrr�typesrrZzope.interface.interfacerrr	rrr!r"r$rrrrr �<module>s
M



Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 2.33 KB 0644
__init__.cpython-36.pyc File 2.33 KB 0644
_compat.cpython-36.opt-1.pyc File 1.2 KB 0644
_compat.cpython-36.pyc File 1.2 KB 0644
_flatten.cpython-36.opt-1.pyc File 518 B 0644
_flatten.cpython-36.pyc File 518 B 0644
adapter.cpython-36.opt-1.pyc File 15.89 KB 0644
adapter.cpython-36.pyc File 15.89 KB 0644
advice.cpython-36.opt-1.pyc File 4.73 KB 0644
advice.cpython-36.pyc File 4.76 KB 0644
declarations.cpython-36.opt-1.pyc File 22.31 KB 0644
declarations.cpython-36.pyc File 22.31 KB 0644
document.cpython-36.opt-1.pyc File 3 KB 0644
document.cpython-36.pyc File 3 KB 0644
exceptions.cpython-36.opt-1.pyc File 2.52 KB 0644
exceptions.cpython-36.pyc File 2.52 KB 0644
interface.cpython-36.opt-1.pyc File 17.14 KB 0644
interface.cpython-36.pyc File 17.14 KB 0644
interfaces.cpython-36.opt-1.pyc File 49.81 KB 0644
interfaces.cpython-36.pyc File 49.81 KB 0644
registry.cpython-36.opt-1.pyc File 19.99 KB 0644
registry.cpython-36.pyc File 20.03 KB 0644
ro.cpython-36.opt-1.pyc File 1.21 KB 0644
ro.cpython-36.pyc File 1.21 KB 0644
verify.cpython-36.opt-1.pyc File 2.54 KB 0644
verify.cpython-36.pyc File 2.54 KB 0644