MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/usr/lib/python2.4/site-packages/dns/namedict.pyc
mō
!`Nc@s)dZdkZdefd„ƒYZdS(sDNS name dictionaryNtNameDictcBs)tZdZd„Zd„Zd„ZRS(sīA dictionary whose keys are dns.name.Name objects.
    @ivar max_depth: the maximum depth of the keys that have ever been
    added to the dictionary.
    @type max_depth: int
    cOs&tt|ƒi||Žd|_dS(Ni(tsuperRtselft__init__targstkwargst	max_depth(RRR((t0/usr/lib/python2.4/site-packages/dns/namedict.pyRscCslt|tiiƒptdƒ‚nt|ƒ}||i	jo
||_	nt
t|ƒi||ƒdS(NsNameDict key must be a name(t
isinstancetkeytdnstnametNamet
ValueErrortlentdepthRRRRt__setitem__tvalue(RR	RR((RR s
cCsœt|ƒ}||ijo
|i}nxPt|dƒD]>}tii||ƒ}|i
|ƒo|||fSq:q:W|tii}tii|fS(sFind the deepest match to I{name} in the dictionary.

        The deepest match is the longest name in the dictionary which is
        a superdomain of I{name}.

        @param name: the name
        @type name: dns.name.Name object
        @rtype: (key, value) tuple
        iN(
RRRRRtxrangetiR
Rtnthas_keytemptytv(RRRRRR((Rtget_deepest_match(s	
(t__name__t
__module__t__doc__RRR(((RRs		(Rtdns.nameR
tdictR(RR
((Rt?s