HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/verify.pyc
�
1�3\c@@s�dZddlmZddlmZmZddlmZddlmZm	Z	ddl
mZmZm
Z
ddlZe	fZddd	�Zdd
�Zdd�Zd�ZdS(
s!Verify interface implementations
i(tabsolute_importi(tBrokenImplementationtDoesNotImplement(tBrokenMethodImplementation(tFunctionTypet
MethodType(t
fromMethodtfromFunctiontMethodNc
C@s�|dkr|j}n	|j}|rD||�rDt|��nx�|jd�D]�\}}yt||�}WnBtk
r�t|t�r�|dkr�qTnt||��nXt|t�s�qTnt|t	�r4t
jddkrt|t�rt
||d|dd�}q�t
||d|�}n{t|t�rmt|j�t	krmt|||�}nBt|t�r�|dkr�qTn!t|�sTt|d��qTqT|j�}|j�}t||�}	|	rTt||	��qTqTWtS(s�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.
    tciiitnametimlevelsNot a method(t
implementedByt
providedByRtnamesAndDescriptionstgetattrtAttributeErrort
isinstanceRRRtsystversion_infottypeRtMethodTypest__func__RtpropertytcallableRtgetSignatureInfot	_incompattTrue(
tifacet	candidatet	tentativetvtypettesterR
tdesctattrtmethtmess((sP/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/verify.pyt_verifysB	
"cC@st|||dd�S(NRR	(R%(RRR((sP/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/verify.pytverifyClassgscC@st|||dd�S(NRto(R%(RRR((sP/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/verify.pytverifyObjectjscC@s�t|d�t|d�kr$dSt|d�t|d�krS|drSdS|drl|drldS|dr�|dr�dSdS(	Ntrequireds*implementation requires too many argumentst
positionaltvarargss-implementation doesn't allow enough argumentstkwargss0implementation doesn't support keyword argumentss1implementation doesn't support variable arguments(tlen(R)timplemented((sP/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/verify.pyRms  (t__doc__t
__future__Rt
exceptionsRRRttypesRRt	interfaceRRRRRtNoneR%R&R(R(((sP/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/verify.pyt<module>s	J