Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
 ‹EYc@swdZddlZddlZddlZddlmZejjdƒZ	e	d„Z
e	ed„Zdd„ZdS(	s‚DNS E.164 helpers

@var public_enum_domain: The DNS public ENUM domain, e164.arpa.
@type public_enum_domain: dns.name.Name object
iÿÿÿÿNi(tstring_typess
e164.arpa.cCsNg|D]}|jƒr|^q}|jƒtjjdj|ƒ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.torigin(tisdigittreversetdnstnamet	from_texttjoin(ttextRtdtparts((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/e164.pyt	from_e164s
%
cCs¸|dk	r|j|ƒ}ng|jD]*}|jƒr(t|ƒdkr(|^q(}t|ƒt|jƒkrˆtjjdƒ‚n|jƒdj	|ƒ}|r´d|}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(
tNonet
relativizetlabelsRtlenRt	exceptiontSyntaxErrorRR(RRtwant_plus_prefixR
tdlabelsR	((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/e164.pytto_e164.s:

cCs»|dkrtjjƒ}ntjjƒ}x|D]y}t|tƒr^tjj|ƒ}ntj	j
||ƒ}y|j|dƒSWq4tjjk
r¬}||7}q4Xq4W|‚dS(s‘Look for NAPTR RRs for the specified number in the specified domains.

    e.g. lookup('16505551212', ['e164.dnspython.org.', 'e164.arpa.'])
    tNAPTRN(RRtresolvertget_default_resolvertNXDOMAINt
isinstanceRRRte164Rtquery(tnumbertdomainsRte_nxtdomaintqnamete((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/e164.pyREs
(t__doc__t
dns.exceptionRtdns.nametdns.resolvert_compatRRRtpublic_enum_domainRtTrueRRR(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/e164.pyt<module>s