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/proc/2/task/2/root/usr/lib/python2.4/site-packages/dns/e164.pyc
mò
‹Oc@s^dZdkZdkZdkZeiidƒZed„Zee	d„Z
dd„ZdS(s‚DNS E.164 helpers

@var public_enum_domain: The DNS public ENUM domain, e164.arpa.
@type public_enum_domain: dns.name.Name object
Ns
e164.arpa.cCs[g}|D]}|iƒo||qq~}|iƒtiidi	|ƒd|ƒS(suConvert an E.164 number in textual form into a Name object whose
    value is the ENUM domain name for that number.
    @param text: an E.164 number in textual form.
    @type text: str
    @param origin: The domain in which the number should be constructed.
    The default is e164.arpa.
    @type origin: dns.name.Name object or None
    @rtype: dns.name.Name object
    t.toriginN(t_[1]ttexttdtisdigittpartstreversetdnstnamet	from_texttjoinR(RRRRR((t,/usr/lib/python2.4/site-packages/dns/e164.pyt	from_e164s	2
cCsÌ|dj	o|i|ƒ}ng}|iD]1}|iƒot|ƒdjo||q.q.~}t|ƒt|iƒjot
iidƒ‚n|i
ƒdi|ƒ}|od|}n|S(s¨Convert an ENUM domain name into an E.164 number.
    @param name: the ENUM domain name.
    @type name: dns.name.Name object.
    @param origin: A domain containing the ENUM domain name.  The
    name is relativized to this domain before being converted to text.
    @type origin: dns.name.Name object or None
    @param want_plus_prefix: if True, add a '+' to the beginning of the
    returned number.
    @rtype: str
    is$non-digit labels in ENUM domain namett+N(RtNoneR	t
relativizeRtlabelsRRtlentdlabelsRt	exceptiontSyntaxErrorRRRtwant_plus_prefix(R	RRRRRR((Rtto_e164*s

H
cCs²|djotiiƒ}nx|D]w}t|ttfƒoti	i
|ƒ}ntii||ƒ}y|i|dƒSWq'tiij
oq'Xq'Wtii‚dS(s‘Look for NAPTR RRs for the specified number in the specified domains.

    e.g. lookup('16505551212', ['e164.dnspython.org.', 'e164.arpa.'])
    tNAPTRN(tresolverRRtget_default_resolvertdomainstdomaint
isinstancetstrtunicodeR	R
te164R
tnumbertqnametquerytNXDOMAIN(R"RRRR#((RR$@s
	(
t__doc__t
dns.exceptionRtdns.nametdns.resolverR	R
tpublic_enum_domainR
tTrueRRR$(R*RRR$R
((Rt?s