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/adapter.pyc
�
1�3\c@@s�dZddlmZddlZddlmZddlmZddlmZddlmZdd	l	m
Z
dd
lmZddlm
Z
dZd
efd��YZe�Zdefd��YZeZyddlmZWnek
reZnXdefd��YZeZyddlmZWnek
rJeZnXdefd��YZdeefd��YZee
�defd��Y�Zdeefd��YZee
�defd��Y�Zd�Zd �Z d!�Z!d"�Z"dS(#sAdapter management
i(tabsolute_importNi(timplementer(t
providedBy(t	Interface(tro(tIAdapterRegistry(t_normalize_name(tSTRING_TYPESutBaseAdapterRegistryc	B@s�eZdZd	Zdd
�Zd�Zed�d
��Zd�Zd�Z	d�Z
ed�Zdd�Zd�Zdd�Zd�ZRS(tlookuptqueryMultiAdaptertlookup1tqueryAdaptertadapter_hookt	lookupAlltnamest
subscriptionstsubscribersicC@s2g|_g|_i|_|j�||_dS(N(t	_adapterst_subscriberst	_providedt
_createLookupt	__bases__(tselftbases((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyt__init__*s
			
cC@s0||jd<tj|�|_|j|�dS(NR(t__dict__Rtchanged(RR((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyt	_setBasesYs
cC@s|jdS(NR(R(R((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyt<lambda>^tcC@s
|j|�S(N(R(RR((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR_RcC@sC|j|�|_x*|jD]}t|j|�|j|<qWdS(N(tLookupClasst	_v_lookupt
_delegatedtgetattrR(Rtname((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRbscC@s#|jd7_|jj|�dS(Ni(t_generationR R(Rtoriginally_changed((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRgscC@sut|t�std��n|dkrD|j||||�dSttt|��}t|�}t	|�}|j
}x#t	|�|kr�|ji�q}W||}||f}xB|D]:}	|j|	�}
|
dkr�i}
|
||	<n|
}q�W|j|�|krdS|||<|j
j|d�d}||j
|<|dkrd|jj|�n|j|�dS(Nsname is not a stringii(t
isinstanceRt
ValueErrortNonet
unregisterttupletmapt_convert_None_to_InterfaceRtlenRtappendtgetRR tadd_extendorR(RtrequiredtprovidedR#tvaluetordertbyordert
componentstkeytktdtn((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pytregisterks6	






c
C@s�ttt|��}t|�}t|�}|j}t|�|krLdS||}||f}x3|D]+}|j|�}	|	dkr�dS|	}qjW|j|�S(N(R*R+R,RR-RR(R/(
RR1R2R#R4R5R6R7R8R9((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyt
registered�s	



cC@s�ttt|��}t|�}|j}|t|�kr@tS||}||f}g}	xF|D]>}
|j|
�}|dkr�dS|	j||
f�|}qdW|j|�}|dkr�dS|dk	r�||k	r�dS||=|sHx5t	|	�D]'\}
}
|
|
}|rPq�|
|
=q�Wx|rD|drD|d=q)Wn|j
|d}|dkr�|j
|=|jj|�n
||j
|<|j
|�dS(Ni����ii(R*R+R,R-RtFalseR/R(R.treversedRR tremove_extendorR(RR1R2R#R3R4R5R6R7tlookupsR8R9toldtcompR:((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR)�sD	






cC@s4ttt|��}t}t|�}|j}x#t|�|krU|ji�q3W||}||f}xB|D]:}	|j|	�}
|
dkr�i}
|
||	<n|
}qtW|j|d�|f||<|dk	r#|j	j|d�d}||j	|<|dkr#|j
j|�q#n|j|�dS(Nii((
R*R+R,t_BLANKR-RR.R/R(RR R0R(RR1R2R3R#R4R5R6R7R8R9R:((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyt	subscribe�s*	





cC@s�ttt|��}t|�}|j}|t|�kr@dS||}||f}g}xF|D]>}	|j|	�}
|
dkr�dS|j||	f�|
}qdW|jt�}|s�dS|dkr�d}n+tg|D]}
|
|k	r�|
^q��}||krdS|r"||t<n^|t=x5t	|�D]'\}}	||	}
|
rVPq6||	=q6Wx|r|dr|d=qdW|dk	r�|j
|t|�t|�}|dkr�|j
|=|jj|�q�n|j
|�dS(Ni����i((R*R+R,R-RR/R(R.RCR>RR R?R(RR1R2R3R4R5R6R7R@R8R9RAtnewtvRBR:((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pytunsubscribe�sL	



	+

!
cC@sddd��Y}|S(NtXXXTwistedFakeOutcB@seZiZRS((t__name__t
__module__tselfImplied(((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRH)s(((Rt_RH((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR/(s(	R	R
RRR
RRRR(N(RIRJR!R$RRtpropertyRRRR;RCR<R(R)RDRGR/(((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRs /					#0	<tLookupBaseFallbackcB@steZd�Zd	d�Zd�Zed	d�Zed	d�Zed	d�Z	ed	d�Z
d�Zd�ZRS(
cC@si|_i|_i|_dS(N(t_cachet_mcachet_scache(R((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR1s		cC@s+|jj�|jj�|jj�dS(N(ROtclearRPRQ(Rtignored((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR6s

cC@su|jj|�}|dkr4i}||j|<n|rq|j|�}|dkrhi}|||<n|}n|S(N(ROR/R((RR2R#tcachetc((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyt	_getcache;s
	cC@s�t|t�std��n|j||�}t|�}t|�dkrg|j|dt�}n|jt|�t�}|tkr�|j|||�}t|�dkr�|||d<q�||t|�<n|dkr�|S|S(Nsname is not a stringii(
R&RR'RVR*R-R/t_not_in_mappingt_uncached_lookupR((RR1R2R#tdefaultRTtresult((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR	HscC@s{t|t�std��n|j||�}|j|t�}|tkrg|j|f|||�S|dkrw|S|S(Nsname is not a string(R&RR'RVR/RWR	R((RR1R2R#RYRTRZ((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR^scC@s|j||||�S(N(R
(RtobjectR2R#RY((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRksc	C@s�t|t�std��nt|�}|j||�}|j|t�}|tkru|j|f||�}n|dk	r�||�}|dk	r�|Sn|S(Nsname is not a string(	R&RR'RRVR/RWR	R((	RR2R[R#RYR1RTtfactoryRZ((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR
nscC@s�|jj|�}|dkr4i}||j|<nt|�}|j|t�}|tkr}|j||�}|||<n|S(N(RPR/R(R*RWt_uncached_lookupAll(RR1R2RTRZ((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR~s
cC@s�|jj|�}|dkr4i}||j|<nt|�}|j|t�}|tkr}|j||�}|||<n|S(N(RQR/R(R*RWt_uncached_subscriptions(RR1R2RTRZ((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR�s
N(
RIRJRR(RRVRCR	RRR
RR(((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRN/s		

	(t
LookupBasetVerifyingBaseFallbackcB@s5eZd�Zd�Zd�Zd�Zd�ZRS(cC@sItj||�|jjd|_g|jD]}|j^q-|_dS(Ni(RNRt	_registryRt
_verify_roR$t_verify_generations(RR%tr((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR�scC@s<g|jD]}|j^q
|jkr8|jd�ndS(N(RbR$RcRR((RRd((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyt_verify�scC@s|j�tj|||�S(N(ReRNRV(RR2R#((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRV�s
cC@s|j�tj|||�S(N(ReRNR(RR1R2((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR�s
cC@s|j�tj|||�S(N(ReRNR(RR1R2((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR�s
(RIRJRReRVRR(((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR`�s
				(t
VerifyingBasetAdapterLookupBasecB@s�eZd�Zdd�Zd�Zd�Zd�Zd�Ze	d�Z
e	dd�Zd�Zd	�Z
d
�Zd�ZRS(
cC@s3||_i|_|j�tt|�j�dS(N(Rat	_requiredtinit_extendorstsuperRgR(Rtregistry((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR�s		
cC@sftt|�jd�x<|jj�D]+}|�}|dk	r&|j|�q&q&W|jj�dS(N(RjRgRR(RhtkeysRGRR(RRSRd((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR�s	cC@s1i|_x!|jjD]}|j|�qWdS(N(t
_extendorsRaRR0(Rtp((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRi�s	cC@s�|j}x||jD]q}|j|d�}g|D]}|j|�r2|^q2|gg|D]}|j|�s^|^q^||<qWdS(N((Rmt__iro__R/tisOrExtends(RR2Rmtit	extendorste((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR0�s
	,cC@sV|j}xF|jD];}g|j|d�D]}||kr,|^q,||<qWdS(N((RmRoR/(RR2RmRqRs((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR?�s	cG@sP|j}x@|D]8}|j�}||kr|j|�d||<qqWdS(Ni(RhtweakrefRD(RR1t_refsRdtref((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyt
_subscribes	

c
C@s�t|�}d}t|�}x�|jjD]}}|j}|t|�krRq+n|jjj|�}|ssq+n||}	t	|	|||d|�}|dk	r+Pq+q+W|j
|�|S(Ni(R*R(R-RaRRR RmR/t_lookupRw(
RR1R2R#RZR4RkR5RrR6((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRXs"	
	
cC@sN|jtt|�||�}|dkr.|S||�}|dkrJ|S|S(N(R	R+RR((RtobjectsR2R#RYR\RZ((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR
%sc	C@s�t|�}t|�}i}xt|jj�D]k}|j}|t|�krXq1n|jjj|�}|syq1n||}t	||||d|�q1W|j
|�t|j��S(Ni(R*R-R>RaRRR RmR/t
_lookupAllRwtitems(	RR1R2R4RZRkR5RrR6((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR]0s	

cC@s'g|j||�D]}|d^qS(Ni(R(RR1R2RU((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRBsc	C@s�t|�}t|�}g}x�t|jj�D]�}|j}|t|�krXq1n|dkrp|f}n'|jjj	|�}|dkr�q1nt
||||t|d|�q1W|j|�|S(Ni(
R*R-R>RaRRR(R RmR/t_subscriptionsRCRw(RR1R2R4RZRkR5Rr((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR^Es 	
cC@s�|jtt|�|�}|dkrKd}xZ|D]}||�q4Wn?g}x6|D].}||�}|dk	rX|j|�qXqXW|S(N((RR+RR(R.(RRyR2RRZtsubscriptiont
subscriber((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR\s

N(RIRJRR(RRiR0R?RwRCRXR
R]RR^R(((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRg�s								t
AdapterLookupcB@seZRS((RIRJ(((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRjstAdapterRegistrycB@s>eZeZdd�Zd�Zd�Zd�Zd�ZRS(cC@s)tj�|_tt|�j|�dS(N(RttWeakKeyDictionaryt_v_subregistriesRjR�R(RR((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRrscC@sd|j|<dS(Ni(R�(RRd((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyt_addSubregistryyscC@s ||jkr|j|=ndS(N(R�(RRd((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyt_removeSubregistry|scC@s�|jjdd�}x*|D]"}||kr|j|�qqWx*|D]"}||krI|j|�qIqIWtt|�j|�dS(NR((RR/R�R�RjR�R(RRRARd((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR�s

cC@sAtt|�j|�x$|jj�D]}|j|�q&WdS(N(RjR�RR�Rl(RR%tsub((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR�s((	RIRJRRRR�R�RR(((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR�ms			tVerifyingAdapterLookupcB@seZRS((RIRJ(((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR��stVerifyingAdapterRegistrycB@seZeZRS((RIRJR�R(((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR��scC@s|dkrtS|SdS(N(R(R(tx((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR,�sc
C@s�||krnx�||jD]M}|j|�}|rt|||||d|�}|dk	rg|SqqWnHxE|D]=}	|j|	�}|ru|j|�}|dk	r�|SququWdS(Ni(t__sro__R/RxR((
R6tspecsR2R#RqtltspectcompsRdtiface((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRx�s
c	C@s�||krbx�t||j�D];}|j|�}|r t|||||d|�q q Wn<x9t|�D]+}|j|�}|ro|j|�qoqoWdS(Ni(R>R�R/Rztupdate(	R6R�R2RZRqR�R�R�R�((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyRz�s'c
	C@s�||krex�t||j�D]>}|j|�}|r t||||||d|�q q WnTxQt|�D]C}	|j|	�}|rr|j|�}|r�|j|�q�qrqrWdS(Ni(R>R�R/R|textend(
R6R�R2R#RZRqR�R�R�R�((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyR|�s*(#t__doc__t
__future__RRtRRRRRt
interfacesRt_compatRRRCR[RRWRNtLookupBasePyt_zope_interface_coptimizationsR_tImportErrorR`tVerifyingBasePyRfRgRR�R�R�R,RxRzR|(((sQ/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/adapter.pyt<module>sH�	l



�$